Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __UM_ELF_H |
| 2 | #define __UM_ELF_H |
| 3 | |
| 4 | #include "linux/config.h" |
| 5 | #include "asm/archparam.h" |
| 6 | |
| 7 | extern long elf_aux_hwcap; |
| 8 | #define ELF_HWCAP (elf_aux_hwcap) |
| 9 | |
| 10 | #define SET_PERSONALITY(ex, ibcs2) do ; while(0) |
| 11 | |
| 12 | #define ELF_EXEC_PAGESIZE 4096 |
| 13 | |
| 14 | #define elf_check_arch(x) (1) |
| 15 | |
Paolo 'Blaisorblade' Giarrusso | c45166b | 2005-05-01 08:58:54 -0700 | [diff] [blame] | 16 | #ifdef CONFIG_64BIT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #define ELF_CLASS ELFCLASS64 |
| 18 | #else |
| 19 | #define ELF_CLASS ELFCLASS32 |
| 20 | #endif |
| 21 | |
| 22 | #define USE_ELF_CORE_DUMP |
| 23 | |
| 24 | #define R_386_NONE 0 |
| 25 | #define R_386_32 1 |
| 26 | #define R_386_PC32 2 |
| 27 | #define R_386_GOT32 3 |
| 28 | #define R_386_PLT32 4 |
| 29 | #define R_386_COPY 5 |
| 30 | #define R_386_GLOB_DAT 6 |
| 31 | #define R_386_JMP_SLOT 7 |
| 32 | #define R_386_RELATIVE 8 |
| 33 | #define R_386_GOTOFF 9 |
| 34 | #define R_386_GOTPC 10 |
| 35 | #define R_386_NUM 11 |
| 36 | |
| 37 | #endif |