#[repr(C)]pub struct Header {Show 19 fields
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,
/* private fields */
}
Expand description
The ELF header
Fields§
§magic: [u8; 4]
§class: u8
§data: u8
§header_version: u8
§abi: u8
§abi_version: u8
§file_type: u16
§machine_type: u16
§version: u32
§entry_point: u64
§program_header_offset: u64
§section_header_offset: u64
§flags: u32
§header_size: u16
§program_header_entry_size: u16
§number_of_program_headers: u16
§section_header_entry_size: u16
§number_of_section_headers: u16
§string_table_index: u16
This is the section index of the string table that contains the names of the sections.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more