Struct goblin::elf::section_header::section_header32::SectionHeader[][src]

#[repr(C)]
pub struct SectionHeader { pub sh_name: u32, pub sh_type: u32, pub sh_flags: u32, pub sh_addr: u32, pub sh_offset: u32, pub sh_size: u32, pub sh_link: u32, pub sh_info: u32, pub sh_addralign: u32, pub sh_entsize: u32, }
Expand description

Section Headers are typically used by humans and static linkers for additional information or how to relocate the object

NOTE section headers are strippable from a binary without any loss of portability/executability; do not rely on them being there!

Fields

sh_name: u32

Section name (string tbl index)

sh_type: u32

Section type

sh_flags: u32

Section flags

sh_addr: u32

Section virtual addr at execution

sh_offset: u32

Section file offset

sh_size: u32

Section size in bytes

sh_link: u32

Link to another section

sh_info: u32

Additional section information

sh_addralign: u32

Section alignment

sh_entsize: u32

Entry size if section holds table

Implementations

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

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

recently added

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.