xref: /original-bsd/sys/sys/exec.h (revision 241757c4)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)exec.h	7.1 (Berkeley) 06/04/86
7  */
8 
9 /*
10  * Header prepended to each a.out file.
11  */
12 struct exec {
13 	long	a_magic;	/* magic number */
14 unsigned long	a_text;		/* size of text segment */
15 unsigned long	a_data;		/* size of initialized data */
16 unsigned long	a_bss;		/* size of uninitialized data */
17 unsigned long	a_syms;		/* size of symbol table */
18 unsigned long	a_entry;	/* entry point */
19 unsigned long	a_trsize;	/* size of text relocation */
20 unsigned long	a_drsize;	/* size of data relocation */
21 };
22 
23 #define	OMAGIC	0407		/* old impure format */
24 #define	NMAGIC	0410		/* read-only text */
25 #define	ZMAGIC	0413		/* demand load format */
26