Struct elf::types::FileHeader [] [src]

pub struct FileHeader {
    pub class: Class,
    pub data: Data,
    pub version: Version,
    pub osabi: OSABI,
    pub abiversion: u8,
    pub elftype: Type,
    pub machine: Machine,
    pub entry: u64,
}

Encapsulates the contents of the ELF File Header

The ELF File Header starts off every ELF file and both identifies the file contents and informs how to interpret said contents. This includes the width of certain fields (32-bit vs 64-bit), the data endianness, the file type, and more.

Fields

32-bit vs 64-bit

little vs big endian

elf version

OS ABI

Version of the OS ABI

ELF file type

Target machine architecture

Virtual address of program entry point

Methods

impl FileHeader
[src]

Trait Implementations

impl Copy for FileHeader
[src]

impl Clone for FileHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FileHeader
[src]

Formats the value using the given formatter.

impl PartialEq for FileHeader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FileHeader
[src]

impl Display for FileHeader
[src]

Formats the value using the given formatter. Read more