36 typedef uint32_t Elf32_Addr;
37 typedef uint16_t Elf32_Half;
38 typedef uint32_t Elf32_Off;
39 typedef int32_t Elf32_Sword;
40 typedef uint32_t Elf32_Word;
86 unsigned char e_ident[EI_NIDENT];
121 EF_ARM_HASENTRY = 0x02,
122 EF_ARM_SYMSARESORTED = 0x04,
123 EF_ARM_DYNSYMSUSESEGIDX = 0x08,
124 EF_ARM_MAPSYMSFIRST = 0x10,
126 EF_ARM_EABIMASK = 0xff000000,
129 ARM_EABI_VERSION = 0x02000000
168 Elf32_Word sh_addralign;
169 Elf32_Word sh_entsize;
178 SHN_LORESERVE = 0xff00,
183 SHN_HIRESERVE = 0xffff
220 SHF_ENTRYSECT = 0x10000000,
221 SHF_COMDEF = 0x80000000
224 #define BSS_SECTION_NAME ".bss" 225 #define DATA_SECTION_NAME ".data" 226 #define TEXT_SECTION_NAME ".text" 227 #define SHSTRTAB_SECTION_NAME ".shstrtab" 228 #define STRTAB_SECTION_NAME ".strtab" 229 #define SYMTAB_SECTION_NAME ".symtab" 305 unsigned char st_info;
306 unsigned char st_other;
313 #define ELF32_ST_BIND(i) ((i) >> 4) 314 #define ELF32_ST_TYPE(i) ((i)&0x0f) 315 #define ELF32_ST_INFO(b, t) \ 316 (((b) << 4) + ((t)&0x0f)) 359 #define ARM_SEQUENCE_MAPSYM "$a" 360 #define DATA_SEQUENCE_MAPSYM "$d" 361 #define THUMB_SEQUENCE_MAPSYM "$t" 363 #define THUMB_BL_TAGSYM "$b" 364 #define FN_PTR_CONST_TAGSYM "$f" 365 #define INDIRECT_FN_CALL_TAGSYM "$p" 366 #define MAPPING_SYMBOL_COUNT_TAGSYM "$m" Elf32_Half e_phentsize
Size in bytes of one entry in the program header table.
Definition: apps/elftosb/common/ELF.h:72
ELF section header.
Definition: apps/elftosb/common/ELF.h:135
Elf32_Half e_ehsize
The ELF header's size in bytes.
Definition: apps/elftosb/common/ELF.h:71
ELF program header.
Definition: apps/elftosb/common/ELF.h:223
Elf32_Half e_shstrndx
Section header table index of the section name string table.
Definition: apps/elftosb/common/ELF.h:76
unsigned char e_ident[EI_NIDENT]
Magic number identifying the file format.
Definition: apps/elftosb/common/ELF.h:63
Elf32_Word e_flags
Processor-specific flags associated with the file.
Definition: apps/elftosb/common/ELF.h:70
ELF symbol table entry.
Definition: apps/elftosb/common/ELF.h:277
Elf32_Off e_phoff
Program header table offset in bytes, or 0 if no program header table.
Definition: apps/elftosb/common/ELF.h:68
Elf32_Half e_shentsize
Size in bytes of an entry in the section header table.
Definition: apps/elftosb/common/ELF.h:74
Elf32_Half e_type
Identifies the object file format.
Definition: apps/elftosb/common/ELF.h:64
Elf32_Half e_shnum
Number of entries in the section header table.
Definition: apps/elftosb/common/ELF.h:75
ELF file header.
Definition: apps/elftosb/common/ELF.h:61
Elf32_Word e_version
Object file version.
Definition: apps/elftosb/common/ELF.h:66
Elf32_Half e_machine
Specified the architecture for the object file.
Definition: apps/elftosb/common/ELF.h:65
Elf32_Half e_phnum
Number of entries in the program header table.
Definition: apps/elftosb/common/ELF.h:73
Elf32_Off e_shoff
Section header table offset in bytes, or 0 if no section header table.
Definition: apps/elftosb/common/ELF.h:69
Elf32_Addr e_entry
Virtual address of the entry point, or 0.
Definition: apps/elftosb/common/ELF.h:67