Type Alias SectionHeaderNative

Source
pub type SectionHeaderNative = SectionHeader<usize>;
Expand description

Variant of the SectionHeader structure native to the current target

Aliased Type§

struct SectionHeaderNative {
    pub name_table_offset: u32,
    pub section_type: SectionType,
    pub flags_raw: usize,
    pub virtual_addr: usize,
    pub file_offset: usize,
    pub file_size: usize,
    pub associated_section_index: u32,
    pub extra_info: u32,
    pub alignment: usize,
    pub entry_size: usize,
}

Fields§

§name_table_offset: u32

Offset within the names section to the start of this section’s name.

§section_type: SectionType

Indicates the contents/meaning of the section described by this header.

§flags_raw: usize

Flags for various attributes of this section.

This is the raw numeric value of the flags. Use the flags accessor to view as a SectionFlags type.

§virtual_addr: usize

Virtual address where this section should be loaded in memory, if applicable.

§file_offset: usize

File offset to the start of this section’s data.

§file_size: usize

Size in bytes of this section’s file data.

§associated_section_index: u32

Depending on the section_type, this may identify another related section.

§extra_info: u32

Additional flags that depend on the section_type.

§alignment: usize

Required alignment of the section in bytes.

§entry_size: usize

Depending on the section_type, this may identify the size of individual data entries within the section.