llvm::ELF::Elf32_Ehdr

32-bit ELF file header.

Synopsis

Declared in <llvm/BinaryFormat/ELF.h>

struct Elf32_Ehdr;

Member Functions

NameDescription
checkMagic Return true if e_ident begins with the ELF magic number.
getDataEncoding Return the ELF data encoding from e_ident[EI_DATA].
getFileClass Return the ELF file class from e_ident[EI_CLASS].

Data Members

NameDescription
e_ehsize ELF header size in bytes.
e_entry Virtual address of the entry point.
e_flags Processor-specific flags.
e_ident ELF identification bytes.
e_machine Required architecture (see EM_*).
e_phentsize Size in bytes of one program header entry.
e_phnum Number of entries in the program header table.
e_phoff File offset of the program header table.
e_shentsize Size in bytes of one section header entry.
e_shnum Number of entries in the section header table.
e_shoff File offset of the section header table.
e_shstrndx Section index of the section name string table.
e_type Object file type (see ET_*).
e_version Object file version (must be EV_CURRENT).