Enum multiboot2::ElfSectionType
source · #[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§
source§impl Clone for ElfSectionType
impl Clone for ElfSectionType
source§fn clone(&self) -> ElfSectionType
fn clone(&self) -> ElfSectionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ElfSectionType
impl Debug for ElfSectionType
source§impl Hash for ElfSectionType
impl Hash for ElfSectionType
source§impl Ord for ElfSectionType
impl Ord for ElfSectionType
source§fn cmp(&self, other: &ElfSectionType) -> Ordering
fn cmp(&self, other: &ElfSectionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<ElfSectionType> for ElfSectionType
impl PartialEq<ElfSectionType> for ElfSectionType
source§fn eq(&self, other: &ElfSectionType) -> bool
fn eq(&self, other: &ElfSectionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ElfSectionType> for ElfSectionType
impl PartialOrd<ElfSectionType> for ElfSectionType
source§fn partial_cmp(&self, other: &ElfSectionType) -> Option<Ordering>
fn partial_cmp(&self, other: &ElfSectionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more