Enum multiboot2::ElfSectionType
source · #[repr(u32)]pub enum ElfSectionType {
Show 14 variants
Unused = 0,
ProgramSection = 1,
LinkerSymbolTable = 2,
StringTable = 3,
RelaRelocation = 4,
SymbolHashTable = 5,
DynamicLinkingTable = 6,
Note = 7,
Uninitialized = 8,
RelRelocation = 9,
Reserved = 10,
DynamicLoaderSymbolTable = 11,
EnvironmentSpecific = 1_610_612_736,
ProcessorSpecific = 1_879_048_192,
}
Expand description
An enum abstraction over raw ELF section types.
Variants§
Unused = 0
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 = 1
The section holds information defined by the program, whose format and meaning are determined solely by the program.
LinkerSymbolTable = 2
This section holds a linker symbol table.
StringTable = 3
The section holds a string table.
RelaRelocation = 4
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 = 5
The section holds a symbol hash table.
DynamicLinkingTable = 6
The section holds dynamic linking tables.
Note = 7
This section holds information that marks the file in some way.
Uninitialized = 8
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 = 9
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 = 10
This section type is reserved but has unspecified semantics.
DynamicLoaderSymbolTable = 11
This section holds a dynamic loader symbol table.
EnvironmentSpecific = 1_610_612_736
Values in this inclusive range ([0x6000_0000, 0x6FFF_FFFF)
) are
reserved for environment-specific semantics.
ProcessorSpecific = 1_879_048_192
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§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§impl PartialEq for ElfSectionType
impl PartialEq 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 for ElfSectionType
impl PartialOrd for ElfSectionType
impl Copy for ElfSectionType
impl Eq for ElfSectionType
impl StructuralEq for ElfSectionType
impl StructuralPartialEq for ElfSectionType
Auto Trait Implementations§
impl RefUnwindSafe for ElfSectionType
impl Send for ElfSectionType
impl Sync for ElfSectionType
impl Unpin for ElfSectionType
impl UnwindSafe for ElfSectionType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Self::dst_size
implementation. Read more