43 typedef unsigned long elf32_word;
44 typedef signed long elf32_sword;
45 typedef unsigned short elf32_half;
46 typedef unsigned long elf32_off;
47 typedef unsigned long elf32_addr;
50 unsigned char e_ident[EI_NIDENT];
59 elf32_half e_phentsize;
61 elf32_half e_shentsize;
63 elf32_half e_shstrndx;
82 elf32_word sh_addralign;
83 elf32_word sh_entsize;
88 #define SHT_PROGBITS 1
99 #define SHT_LOPROC 0x70000000
100 #define SHT_HIPROC 0x7fffffff
101 #define SHT_LOUSER 0x80000000
102 #define SHT_HIUSER 0xffffffff
112 elf32_sword r_addend;
119 unsigned char st_info;
120 unsigned char st_other;
124 #define ELF32_R_SYM(info) ((info) >> 8)
125 #define ELF32_R_TYPE(info) ((unsigned char)(info))
127 #define ELF_MAGIC_HEADER "\177ELF\001\001\001"
128 #define ELF_MAGIC_HEADER_SIZE 7