Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1106/12

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


64-bit fixes.
 [rsc] --rw-rw-r-- M 451989 glenda sys 1407 Nov  6 11:07 sys/include/a.out.h
	/n/sourcesdump/2005/1106/plan9/sys/include/a.out.h:11,41 - 
	/n/sourcesdump/2005/1107/plan9/sys/include/a.out.h:11,44
	  	long	pcsz;		/* size of pc/line number table */
	  };
	  
	- #define	_MAGIC(b)	((((4*b)+0)*b)+7)
	- #define	A_MAGIC		_MAGIC(8)	/* 68020 */
	- #define	I_MAGIC		_MAGIC(11)	/* intel 386 */
	- #define	J_MAGIC		_MAGIC(12)	/* intel 960 (retired) */
	- #define	K_MAGIC		_MAGIC(13)	/* sparc */
	- #define	V_MAGIC		_MAGIC(16)	/* mips 3000 BE */
	- #define	X_MAGIC		_MAGIC(17)	/* att dsp 3210 (retired) */
	- #define	M_MAGIC		_MAGIC(18)	/* mips 4000 BE */
	- #define	D_MAGIC		_MAGIC(19)	/* amd 29000 (retired) */
	- #define	E_MAGIC		_MAGIC(20)	/* arm */
	- #define	Q_MAGIC		_MAGIC(21)	/* powerpc */
	- #define	N_MAGIC		_MAGIC(22)	/* mips 4000 LE */
	- #define	L_MAGIC		_MAGIC(23)	/* dec alpha */
	- #define	P_MAGIC		_MAGIC(24)	/* mips 3000 LE */
	- #define	U_MAGIC		_MAGIC(25)	/* sparc64 */
	- #define	S_MAGIC		_MAGIC(26)	/* amd64 */
	+ #define HDR_MAGIC	0x00008000		/* header expansion */
	+ 
	+ #define	_MAGIC(f, b)	((f)|((((4*(b))+0)*(b))+7))
	+ #define	A_MAGIC		_MAGIC(0, 8)		/* 68020 */
	+ #define	I_MAGIC		_MAGIC(0, 11)		/* intel 386 */
	+ #define	J_MAGIC		_MAGIC(0, 12)		/* intel 960 (retired) */
	+ #define	K_MAGIC		_MAGIC(0, 13)		/* sparc */
	+ #define	V_MAGIC		_MAGIC(0, 16)		/* mips 3000 BE */
	+ #define	X_MAGIC		_MAGIC(0, 17)		/* att dsp 3210 (retired) */
	+ #define	M_MAGIC		_MAGIC(0, 18)		/* mips 4000 BE */
	+ #define	D_MAGIC		_MAGIC(0, 19)		/* amd 29000 (retired) */
	+ #define	E_MAGIC		_MAGIC(0, 20)		/* arm */
	+ #define	Q_MAGIC		_MAGIC(0, 21)		/* powerpc */
	+ #define	N_MAGIC		_MAGIC(0, 22)		/* mips 4000 LE */
	+ #define	L_MAGIC		_MAGIC(0, 23)		/* dec alpha */
	+ #define	P_MAGIC		_MAGIC(0, 24)		/* mips 3000 LE */
	+ #define	U_MAGIC		_MAGIC(0, 25)		/* sparc64 */
	+ #define	S_MAGIC		_MAGIC(HDR_MAGIC, 26)	/* amd64 */
	+ 
	  #define	MIN_MAGIC	8
	- #define	MAX_MAGIC	26
	+ #define	MAX_MAGIC	26			/* <= 90 */
	  
	- #define	DYN_MAGIC	0x80000000	/* or'd in for dynamically loaded modules */
	+ #define	DYN_MAGIC	0x80000000		/* dlm */
	  
	  typedef	struct	Sym	Sym;
	  struct	Sym
	  {
	- 	long	value;
	+ 	vlong	value;
	  	char	type;
	  	char	*name;
	  };


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].