#[repr(C)]
pub struct FileHeader64<E: Endian> {
Show 14 fields pub e_ident: Ident, pub e_type: U16<E>, pub e_machine: U16<E>, pub e_version: U32<E>, pub e_entry: U64<E>, pub e_phoff: U64<E>, pub e_shoff: U64<E>, pub e_flags: U32<E>, pub e_ehsize: U16<E>, pub e_phentsize: U16<E>, pub e_phnum: U16<E>, pub e_shentsize: U16<E>, pub e_shnum: U16<E>, pub e_shstrndx: U16<E>,
}
Expand description

The header at the start of every 64-bit ELF file.

Fields

e_ident: Ident

Magic number and other information.

e_type: U16<E>

Object file type. One of the ET_* constants.

e_machine: U16<E>

Architecture. One of the EM_* constants.

e_version: U32<E>

Object file version. Must be EV_CURRENT.

e_entry: U64<E>

Entry point virtual address.

e_phoff: U64<E>

Program header table file offset.

e_shoff: U64<E>

Section header table file offset.

e_flags: U32<E>

Processor-specific flags.

A combination of the EF_* constants.

e_ehsize: U16<E>

Size in bytes of this header.

e_phentsize: U16<E>

Program header table entry size.

e_phnum: U16<E>

Program header table entry count.

If the count is greater than or equal to PN_XNUM then this field is set to PN_XNUM and the count is stored in the sh_info field of section 0.

e_shentsize: U16<E>

Section header table entry size.

e_shnum: U16<E>

Section header table entry count.

If the count is greater than or equal to SHN_LORESERVE then this field is set to 0 and the count is stored in the sh_size field of section 0. first section header.

e_shstrndx: U16<E>

Section header string table index.

If the index is greater than or equal to SHN_LORESERVE then this field is set to SHN_XINDEX and the index is stored in the sh_link field of section 0.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return true if this type is a 64-bit header. Read more

fn e_entry(&self, endian: Self::Endian) -> Self::Word

Read the file header. Read more

Check that the ident field in the file header is a supported format. Read more

Return the first section header, if present. Read more

Return the e_phnum field of the header. Handles extended values. Read more

Return the e_shnum field of the header. Handles extended values. Read more

Return the e_shstrndx field of the header. Handles extended values. Read more

Return the slice of program headers. Read more

Return the slice of section headers. Read more

Return the string table for the section headers.

Return the section table.

Returns whether this is a mips64el elf file.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.