Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ARM_A_OUT_H__ |
| 2 | #define __ARM_A_OUT_H__ |
| 3 | |
| 4 | #include <linux/personality.h> |
Jaswinder Singh Rajput | f100e6d | 2009-01-31 10:38:16 +0530 | [diff] [blame] | 5 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | struct exec |
| 8 | { |
| 9 | __u32 a_info; /* Use macros N_MAGIC, etc for access */ |
| 10 | __u32 a_text; /* length of text, in bytes */ |
| 11 | __u32 a_data; /* length of data, in bytes */ |
| 12 | __u32 a_bss; /* length of uninitialized data area for file, in bytes */ |
| 13 | __u32 a_syms; /* length of symbol table data in file, in bytes */ |
| 14 | __u32 a_entry; /* start address */ |
| 15 | __u32 a_trsize; /* length of relocation info for text, in bytes */ |
| 16 | __u32 a_drsize; /* length of relocation info for data, in bytes */ |
| 17 | }; |
| 18 | |
| 19 | /* |
| 20 | * This is always the same |
| 21 | */ |
| 22 | #define N_TXTADDR(a) (0x00008000) |
| 23 | |
| 24 | #define N_TRSIZE(a) ((a).a_trsize) |
| 25 | #define N_DRSIZE(a) ((a).a_drsize) |
| 26 | #define N_SYMSIZE(a) ((a).a_syms) |
| 27 | |
| 28 | #define M_ARM 103 |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #ifndef LIBRARY_START_TEXT |
| 31 | #define LIBRARY_START_TEXT (0x00c00000) |
| 32 | #endif |
| 33 | |
| 34 | #endif /* __A_OUT_GNU_H__ */ |