1 /* exec.h 1.1 84/07/21 */ 2 3 /* 4 * Header prepended to each a.out file. 5 */ 6 struct exec { 7 long a_magic; /* magic number */ 8 unsigned long a_text; /* size of text segment */ 9 unsigned long a_data; /* size of initialized data */ 10 unsigned long a_bss; /* size of uninitialized data */ 11 unsigned long a_syms; /* size of symbol table */ 12 unsigned long a_entry; /* entry point */ 13 unsigned long a_trsize; /* size of text relocation */ 14 unsigned long a_drsize; /* size of data relocation */ 15 }; 16 17 #define OMAGIC 0407 /* old impure format */ 18 #define NMAGIC 0410 /* read-only text */ 19 #define ZMAGIC 0413 /* demand load format */ 20