Struct object::elf::SectionHeader32

source ·
#[repr(C)]
pub struct SectionHeader32<E: Endian> { pub sh_name: U32<E>, pub sh_type: U32<E>, pub sh_flags: U32<E>, pub sh_addr: U32<E>, pub sh_offset: U32<E>, pub sh_size: U32<E>, pub sh_link: U32<E>, pub sh_info: U32<E>, pub sh_addralign: U32<E>, pub sh_entsize: U32<E>, }
Expand description

Section header.

Fields§

§sh_name: U32<E>

Section name.

This is an offset into the section header string table.

§sh_type: U32<E>

Section type. One of the SHT_* constants.

§sh_flags: U32<E>

Section flags. A combination of the SHF_* constants.

§sh_addr: U32<E>

Section virtual address at execution.

§sh_offset: U32<E>

Section file offset.

§sh_size: U32<E>

Section size in bytes.

§sh_link: U32<E>

Link to another section.

The section relationship depends on the sh_type value.

§sh_info: U32<E>

Additional section information.

The meaning of this field depends on the sh_type value.

§sh_addralign: U32<E>

Section alignment.

§sh_entsize: U32<E>

Entry size if the section holds a table.

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
Parse the section name from the string table.
Return the offset and size of the section in the file. Read more
Return the section data. Read more
Return the section data as a slice of the given type. Read more
Return the strings in the section. Read more
Return the symbols in the section. Read more
Return the Elf::Rel entries in the section. Read more
Return the Elf::Rela entries in the section. Read more
Return entries in a dynamic section. Read more
Return a note iterator for the section data. Read more
Return the contents of a group section. Read more
Return the header of a SysV hash section. Read more
Return the contents of a SysV hash section. Read more
Return the header of a GNU hash section. Read more
Return the contents of a GNU hash section. Read more
Return the contents of a SHT_GNU_VERSYM section. Read more
Return an iterator for the entries of a SHT_GNU_VERDEF section. Read more
Return an iterator for the entries of a SHT_GNU_VERNEED section. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.