xref: /csrg-svn/sys/sys/exec.h (revision 23413)
1*23413Smckusick /*
2*23413Smckusick  * Copyright (c) 1982 Regents of the University of California.
3*23413Smckusick  * All rights reserved.  The Berkeley software License Agreement
4*23413Smckusick  * specifies the terms and conditions for redistribution.
5*23413Smckusick  *
6*23413Smckusick  *	@(#)exec.h	1.2 (Berkeley) 06/08/85
7*23413Smckusick  */
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