Struct mer::header::Header[][src]

#[repr(C)]pub struct Header {
    pub magic: [u8; 4],
    pub class: u8,
    pub data: u8,
    pub header_version: u8,
    pub abi: u8,
    pub abi_version: u8,
    pub file_type: u16,
    pub machine_type: u16,
    pub version: u32,
    pub entry_point: u64,
    pub program_header_offset: u64,
    pub section_header_offset: u64,
    pub flags: u32,
    pub header_size: u16,
    pub program_header_entry_size: u16,
    pub number_of_program_headers: u16,
    pub section_header_entry_size: u16,
    pub number_of_section_headers: u16,
    pub string_table_index: u16,
    // some fields omitted
}

The ELF header

Fields

magic: [u8; 4]class: u8data: u8header_version: u8abi: u8abi_version: u8file_type: u16machine_type: u16version: u32entry_point: u64program_header_offset: u64section_header_offset: u64flags: u32header_size: u16program_header_entry_size: u16number_of_program_headers: u16section_header_entry_size: u16number_of_section_headers: u16string_table_index: u16

This is the section index of the string table that contains the names of the sections.

Implementations

impl Header[src]

pub fn validate(&self) -> Result<(), ElfError>[src]

Trait Implementations

impl Debug for Header[src]

impl Default for Header[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for Header where
    Header: 'a, 
[src]

type Error = Error

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.