#[repr(u32)]
pub enum ElfSectionType {
Show 14 variants Unused, ProgramSection, LinkerSymbolTable, StringTable, RelaRelocation, SymbolHashTable, DynamicLinkingTable, Note, Uninitialized, RelRelocation, Reserved, DynamicLoaderSymbolTable, EnvironmentSpecific, ProcessorSpecific,
}
Expand description

An enum abstraction over raw ELF section types.

Variants

Unused

This value marks the section header as inactive; it does not have an associated section. Other members of the section header have undefined values.

ProgramSection

The section holds information defined by the program, whose format and meaning are determined solely by the program.

LinkerSymbolTable

This section holds a linker symbol table.

StringTable

The section holds a string table.

RelaRelocation

The section holds relocation entries with explicit addends, such as type Elf32_Rela for the 32-bit class of object files. An object file may have multiple relocation sections.

SymbolHashTable

The section holds a symbol hash table.

DynamicLinkingTable

The section holds dynamic linking tables.

Note

This section holds information that marks the file in some way.

Uninitialized

A section of this type occupies no space in the file but otherwise resembles ProgramSection. Although this section contains no bytes, the sh_offset member contains the conceptual file offset.

RelRelocation

The section holds relocation entries without explicit addends, such as type Elf32_Rel for the 32-bit class of object files. An object file may have multiple relocation sections.

Reserved

This section type is reserved but has unspecified semantics.

DynamicLoaderSymbolTable

This section holds a dynamic loader symbol table.

EnvironmentSpecific

Values in this inclusive range ([0x6000_0000, 0x6FFF_FFFF)) are reserved for environment-specific semantics.

ProcessorSpecific

Values in this inclusive range ([0x7000_0000, 0x7FFF_FFFF)) are reserved for processor-specific semantics.

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

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

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 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.