xref: /csrg-svn/sys/sys/exec.h (revision 46439)
1*46439Sbostic /*-
2*46439Sbostic  * Copyright (c) 1982, 1986 The Regents of the University of California.
3*46439Sbostic  * All rights reserved.
423413Smckusick  *
5*46439Sbostic  * %sccs.include.redist.c%
6*46439Sbostic  *
7*46439Sbostic  *	@(#)exec.h	7.5 (Berkeley) 02/15/91
823413Smckusick  */
916744Ssam 
10*46439Sbostic #ifndef	_EXEC_H_
1146280Sbostic #define	_EXEC_H_
1246280Sbostic 
13*46439Sbostic /* Header prepended to each a.out file. */
1416744Ssam struct exec {
1545904Swilliam #if !defined(vax) && !defined(tahoe) && !defined(i386)
1641498Smckusick unsigned short	a_mid;		/* machine ID */
1741498Smckusick unsigned short	a_magic;	/* magic number */
1841498Smckusick #else
1941498Smckusick 	 long	a_magic;	/* magic number */
2041498Smckusick #endif
21*46439Sbostic unsigned long	a_text;		/* text segment size */
22*46439Sbostic unsigned long	a_data;		/* initialized data size */
23*46439Sbostic unsigned long	a_bss;		/* uninitialized data size */
24*46439Sbostic unsigned long	a_syms;		/* symbol table size */
2516744Ssam unsigned long	a_entry;	/* entry point */
26*46439Sbostic unsigned long	a_trsize;	/* text relocation size */
27*46439Sbostic unsigned long	a_drsize;	/* data relocation size */
2816744Ssam };
2941498Smckusick #define	a_machtype	a_mid	/* SUN compatibility */
3016744Ssam 
3141498Smckusick /* a_magic */
32*46439Sbostic #define	OMAGIC		0407	/* old impure format */
33*46439Sbostic #define	NMAGIC		0410	/* read-only text */
34*46439Sbostic #define	ZMAGIC		0413	/* demand load format */
3541498Smckusick 
3641498Smckusick /* a_mid */
3741498Smckusick #define	MID_ZERO	0	/* unknown - implementation dependent */
3841498Smckusick #define	MID_SUN010	1	/* sun 68010/68020 binary */
3941498Smckusick #define	MID_SUN020	2	/* sun 68020-only binary */
4041498Smckusick #define	MID_HP200	200	/* hp200 (68010) BSD binary */
4141498Smckusick #define	MID_HP300	300	/* hp300 (68020+68881) BSD binary */
4241498Smckusick #define	MID_HPUX	0x20C	/* hp200/300 HP-UX binary */
4341498Smckusick #define	MID_HPUX800     0x20B   /* hp800 HP-UX binary */
4446280Sbostic 
4546280Sbostic #endif /* !_EXEC_H_ */
46