BSD 3 development
[unix-history] / usr / src / cmd / px / h04aout.h
CommitLineData
b202b2da
CH
1/*
2 * Format of an a.out header
3 */
4
5struct exec { /* a.out header */
6 int a_magic; /* magic number */
7 unsigned a_text; /* size of text segment */
8 unsigned a_data; /* size of initialized data */
9 unsigned a_bss; /* size of uninitialized data */
10 unsigned a_syms; /* size of symbol table */
11 unsigned a_entry; /* entry point */
12 unsigned a_trsize; /* size of text relocation */
13 unsigned a_drsize; /* size of data relocation */
14};
15
16#define A_MAGIC1 0407 /* normal */
17#define A_MAGIC2 0410 /* read-only text */
18#define A_MAGIC3 0411 /* separated I&D */
19#define A_MAGIC4 0405 /* overlay */