aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_aout9.h
blob: 9a5ada084abfd978ead253f9adf76f09c215b2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
typedef struct	Exec
{
	long	magic;		/* magic number */
	long	text;	 	/* size of text segment */
	long	data;	 	/* size of initialized data */
	long	bss;	  	/* size of uninitialized data */
	long	syms;	 	/* size of symbol table */
	long	entry;	 	/* entry point */
	long	spsz;		/* size of pc/sp offset table */
	long	pcsz;		/* size of pc/line number table */
} Exec;

#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 */