xref: /csrg-svn/sys/sys/exec.h (revision 41498)
123413Smckusick /*
229024Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
323413Smckusick  * All rights reserved.  The Berkeley software License Agreement
423413Smckusick  * specifies the terms and conditions for redistribution.
523413Smckusick  *
6*41498Smckusick  *	@(#)exec.h	7.2 (Berkeley) 05/09/90
723413Smckusick  */
816744Ssam 
916744Ssam /*
1016744Ssam  * Header prepended to each a.out file.
1116744Ssam  */
1216744Ssam struct exec {
13*41498Smckusick #if !defined(vax) && !defined(tahoe)
14*41498Smckusick unsigned short	a_mid;		/* machine ID */
15*41498Smckusick unsigned short	a_magic;	/* magic number */
16*41498Smckusick #else
17*41498Smckusick 	 long	a_magic;	/* magic number */
18*41498Smckusick #endif
1916744Ssam unsigned long	a_text;		/* size of text segment */
2016744Ssam unsigned long	a_data;		/* size of initialized data */
2116744Ssam unsigned long	a_bss;		/* size of uninitialized data */
2216744Ssam unsigned long	a_syms;		/* size of symbol table */
2316744Ssam unsigned long	a_entry;	/* entry point */
2416744Ssam unsigned long	a_trsize;	/* size of text relocation */
2516744Ssam unsigned long	a_drsize;	/* size of data relocation */
2616744Ssam };
27*41498Smckusick #define	a_machtype	a_mid	/* SUN compatibility */
2816744Ssam 
29*41498Smckusick /* a_magic */
3016744Ssam #define	OMAGIC	0407		/* old impure format */
3116744Ssam #define	NMAGIC	0410		/* read-only text */
3216744Ssam #define	ZMAGIC	0413		/* demand load format */
33*41498Smckusick 
34*41498Smckusick /* a_mid */
35*41498Smckusick #define	MID_ZERO	0	/* unknown - implementation dependent */
36*41498Smckusick #define	MID_SUN010	1	/* sun 68010/68020 binary */
37*41498Smckusick #define	MID_SUN020	2	/* sun 68020-only binary */
38*41498Smckusick #define	MID_HP200	200	/* hp200 (68010) BSD binary */
39*41498Smckusick #define	MID_HP300	300	/* hp300 (68020+68881) BSD binary */
40*41498Smckusick #define	MID_HPUX	0x20C	/* hp200/300 HP-UX binary */
41*41498Smckusick #define	MID_HPUX800     0x20B   /* hp800 HP-UX binary */
42