ROSE 0.11.145.339
|
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 22790 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 22791 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 22792 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_data_encoding |
1=>LSB; 2=>MSB; other is error
Definition at line 22793 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 22794 of file binaryInstruction.C.
unsigned char SgAsmElfFileHeader::Elf32FileHeader_disk::e_ident_padding[9] |
Padding to byte 16; must be zero.
Definition at line 22795 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_type |
Object file type: relocatable, executable, lib, core.
Definition at line 22796 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_machine |
Required architecture for an individual file.
Definition at line 22797 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_version |
Object file version, currently zero or one.
Definition at line 22798 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_entry |
Entry virtual address or zero if none.
Definition at line 22799 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phoff |
File offset of program header table or zero if none.
Definition at line 22800 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shoff |
File offset of section header table or zero if none.
Definition at line 22801 of file binaryInstruction.C.
uint32_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_flags |
Processor-specific flags (EF_* constants in docs)
Definition at line 22802 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_ehsize |
Size of ELF header in bytes.
Definition at line 22803 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phentsize |
Size of each entry in the program header table.
Definition at line 22804 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_phnum |
Number of program headers, or PN_XNUM, or zero.
Definition at line 22805 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shentsize |
Size of each entry in the section header table.
Definition at line 22806 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shnum |
Number of section headers, or zero for extended entries.
Definition at line 22807 of file binaryInstruction.C.
uint16_t SgAsmElfFileHeader::Elf32FileHeader_disk::e_shstrndx |
Index of name section, or SHN_UNDEF, or SHN_XINDEX.
Definition at line 22808 of file binaryInstruction.C.