xref: /csrg-svn/sys/sys/exec.h (revision 29024)
123413Smckusick /*
2*29024Smckusick  * 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*29024Smckusick  *	@(#)exec.h	7.1 (Berkeley) 06/04/86
723413Smckusick  */
816744Ssam 
916744Ssam /*
1016744Ssam  * Header prepended to each a.out file.
1116744Ssam  */
1216744Ssam struct exec {
1316744Ssam 	long	a_magic;	/* magic number */
1416744Ssam unsigned long	a_text;		/* size of text segment */
1516744Ssam unsigned long	a_data;		/* size of initialized data */
1616744Ssam unsigned long	a_bss;		/* size of uninitialized data */
1716744Ssam unsigned long	a_syms;		/* size of symbol table */
1816744Ssam unsigned long	a_entry;	/* entry point */
1916744Ssam unsigned long	a_trsize;	/* size of text relocation */
2016744Ssam unsigned long	a_drsize;	/* size of data relocation */
2116744Ssam };
2216744Ssam 
2316744Ssam #define	OMAGIC	0407		/* old impure format */
2416744Ssam #define	NMAGIC	0410		/* read-only text */
2516744Ssam #define	ZMAGIC	0413		/* demand load format */
26