Struct Elf64Ehdr

Source
#[repr(C)]
pub struct Elf64Ehdr {
Show 14 fields pub e_ident: [u8; 16], pub e_type: u16, pub e_machine: u16, pub e_version: u32, pub e_entry: u64, pub e_phoff: u64, pub e_shoff: u64, pub e_flags: u32, pub e_ehsize: u16, pub e_phentsize: u16, pub e_phnum: u16, pub e_shentsize: u16, pub e_shnum: u16, pub e_shstrndx: u16,
}
Expand description

Represents the ELF64 file header.

Contains metadata about the ELF executable, including entry point, program header table, and section header table offsets.

Fields§

§e_ident: [u8; 16]

Identification bytes (magic number, class, data encoding, etc.).

§e_type: u16

Object file type (e.g., ET_EXEC, ET_DYN).

§e_machine: u16

Target machine architecture (e.g., EM_X86_64).

§e_version: u32

ELF version.

§e_entry: u64

Entry point virtual address.

§e_phoff: u64

File offset of the program header table.

§e_shoff: u64

File offset of the section header table.

§e_flags: u32

Processor-specific flags.

§e_ehsize: u16

ELF header size in bytes.

§e_phentsize: u16

Size of each program header entry.

§e_phnum: u16

Number of entries in the program header table.

§e_shentsize: u16

Size of each section header entry.

§e_shnum: u16

Number of entries in the section header table.

§e_shstrndx: u16

Section name string table index.

Trait Implementations§

Source§

impl Debug for Elf64Ehdr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.