Go to the documentation of this file.
13 #ifndef __ELF_TYPES_H__
14 #define __ELF_TYPES_H__
18 #define ELF_MACHINE_MIPS 0x0008
19 #define ELF_SH_STRTAB ".shstrtab"
21 #define ELF_SECT_MAX_NAME 128
119 #define ELF_MAGIC 0x464C457F
121 #define ELF_EXEC_TYPE 0x0002
122 #define ELF_PRX_TYPE 0xFFA0
125 #define SHT_PROGBITS 1
130 #define SHT_DYNAMIC 6
135 #define SHT_DYNSYM 11
136 #define SHT_LOPROC 0x70000000
137 #define SHT_HIPROC 0x7fffffff
138 #define SHT_LOUSER 0x80000000
139 #define SHT_HIUSER 0xffffffff
141 #define SHT_PRXRELOC (SHT_LOPROC | 0xA0)
144 #define R_MIPS_NONE 0
147 #define R_MIPS_REL32 3
149 #define R_MIPS_HI16 5
150 #define R_MIPS_LO16 6
151 #define R_MIPS_GPREL16 7
152 #define R_MIPS_LITERAL 8
153 #define R_MIPS_GOT16 9
154 #define R_MIPS_PC16 10
155 #define R_MIPS_CALL16 11
156 #define R_MIPS_GPREL32 12
160 #define SHF_EXECINSTR 4
169 #define PT_LOPROC 0x70000000
170 #define PT_HIPROC 0x7fffffff
219 #define ELF32_R_SYM(i) ((i)>>8)
220 #define ELF32_R_TYPE(i) ((u8)(i&0xFF))
239 #define STB_LOPROC 13
240 #define STB_HIPROC 15
242 #define ELF32_ST_BIND(i) ((i)>>4)
243 #define ELF32_ST_TYPE(i) ((i)&0xf)
244 #define ELF32_ST_INFO(b,t) (((b)<<4)+((t)&0xf))