pub enum Linking<'a> {
SegmentInfo(SectionLimited<'a, Segment<'a>>),
InitFuncs(SectionLimited<'a, InitFunc>),
ComdatInfo(SectionLimited<'a, Comdat<'a>>),
SymbolTable(SectionLimited<'a, SymbolInfo<'a>>),
Unknown {
ty: u8,
data: &'a [u8],
range: Range<usize>,
},
}
Expand description
Represents a subsection read from the linking custom section.
Variants§
SegmentInfo(SectionLimited<'a, Segment<'a>>)
Extra metadata about the data segments.
InitFuncs(SectionLimited<'a, InitFunc>)
A list of constructor functions to be called at startup.
ComdatInfo(SectionLimited<'a, Comdat<'a>>)
The COMDAT groups of associated linking objects.
SymbolTable(SectionLimited<'a, SymbolInfo<'a>>)
Extra information about the symbols present in the module.
Unknown
An unknown linking subsection.
Trait Implementations§
source§impl<'a> Subsection<'a> for Linking<'a>
impl<'a> Subsection<'a> for Linking<'a>
source§fn from_reader(
id: u8,
reader: BinaryReader<'a>,
) -> Result<Linking<'a>, BinaryReaderError>
fn from_reader( id: u8, reader: BinaryReader<'a>, ) -> Result<Linking<'a>, BinaryReaderError>
Converts the section identifier provided with the section contents into
a typed section
Auto Trait Implementations§
impl<'a> Freeze for Linking<'a>
impl<'a> RefUnwindSafe for Linking<'a>
impl<'a> Send for Linking<'a>
impl<'a> Sync for Linking<'a>
impl<'a> Unpin for Linking<'a>
impl<'a> UnwindSafe for Linking<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)