ROSE 0.11.145.267
|
File format of an ELF header.
Byte order of members depends on e_ident value. This code comes directly from "System V Application Binary Interface, Edition 4.1" and the FreeBSD elf(5) man page, and the "Executable and Linkable Format (ELF) Portable Formats Specifications, Version 1.2" and not from any header file.
Definition at line 21828 of file binaryInstruction.C.
Public Attributes | |
unsigned char | e_ident_magic [4] |
0x7f, 'E', 'L', 'F' | |
unsigned char | e_ident_file_class |
1=>32-bit; 2=>64-bit; other is error | |
unsigned char | e_ident_data_encoding |
1=>LSB; 2=>MSB; other is error | |
unsigned char | e_ident_file_version |
Format version number (same as e_version); must be 1. | |
unsigned char | e_ident_padding [9] |
Padding to byte 16; must be zero. | |
uint16_t | e_type |
Object file type: relocatable, executable, lib, core. | |
uint16_t | e_machine |
Required architecture for an individual file. | |
uint32_t | e_version |
Object file version, currently zero or one. | |
uint32_t | e_entry |
Entry virtual address or zero if none. | |
uint32_t | e_phoff |
File offset of program header table or zero if none. | |
uint32_t | e_shoff |
File offset of section header table or zero if none. | |
uint32_t | e_flags |
Processor-specific flags (EF_* constants in docs) | |
uint16_t | e_ehsize |
Size of ELF header in bytes. | |
uint16_t | e_phentsize |
Size of each entry in the program header table. | |
uint16_t | e_phnum |
Number of program headers, or PN_XNUM, or zero. | |
uint16_t | e_shentsize |
Size of each entry in the section header table. | |
uint16_t | e_shnum |
Number of section headers, or zero for extended entries. | |
uint16_t | e_shstrndx |
Index of name section, or SHN_UNDEF, or SHN_XINDEX. | |
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_magic[4] |
0x7f, 'E', 'L', 'F'
Definition at line 21829 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_file_class |
1=>32-bit; 2=>64-bit; other is error
Definition at line 21830 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_data_encoding |
1=>LSB; 2=>MSB; other is error
Definition at line 21831 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_file_version |
Format version number (same as e_version); must be 1.
Definition at line 21832 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_padding[9] |
Padding to byte 16; must be zero.
Definition at line 21833 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_type |
Object file type: relocatable, executable, lib, core.
Definition at line 21834 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_machine |
Required architecture for an individual file.
Definition at line 21835 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_version |
Object file version, currently zero or one.
Definition at line 21836 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_entry |
Entry virtual address or zero if none.
Definition at line 21837 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phoff |
File offset of program header table or zero if none.
Definition at line 21838 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shoff |
File offset of section header table or zero if none.
Definition at line 21839 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_flags |
Processor-specific flags (EF_* constants in docs)
Definition at line 21840 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_ehsize |
Size of ELF header in bytes.
Definition at line 21841 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phentsize |
Size of each entry in the program header table.
Definition at line 21842 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phnum |
Number of program headers, or PN_XNUM, or zero.
Definition at line 21843 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shentsize |
Size of each entry in the section header table.
Definition at line 21844 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shnum |
Number of section headers, or zero for extended entries.
Definition at line 21845 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shstrndx |
Index of name section, or SHN_UNDEF, or SHN_XINDEX.
Definition at line 21846 of file binaryInstruction.C.