pub struct VersionTable<'data, Elf: FileHeader> { /* private fields */ }
Expand description
A table of version definitions and requirements.
It allows looking up the version information for a given symbol index.
This is derived from entries in the SHT_GNU_versym
, SHT_GNU_verdef
and SHT_GNU_verneed
sections.
Implementations
pub fn parse<R: ReadRef<'data>>(
endian: Elf::Endian,
versyms: &'data [Versym<Elf::Endian>],
verdefs: Option<VerdefIterator<'data, Elf>>,
verneeds: Option<VerneedIterator<'data, Elf>>,
strings: StringTable<'data, R>
) -> Result<Self>
pub fn parse<R: ReadRef<'data>>(
endian: Elf::Endian,
versyms: &'data [Versym<Elf::Endian>],
verdefs: Option<VerdefIterator<'data, Elf>>,
verneeds: Option<VerneedIterator<'data, Elf>>,
strings: StringTable<'data, R>
) -> Result<Self>
Parse the version sections.
Return version index for a given symbol index.
Return version information for a given symbol version index.
Returns Ok(None)
for local and global versions.
Returns Err(_)
if index is invalid.
Trait Implementations
impl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf> where
Elf::Endian: Clone,
impl<'data, Elf: Clone + FileHeader> Clone for VersionTable<'data, Elf> where
Elf::Endian: Clone,
impl<'data, Elf: Debug + FileHeader> Debug for VersionTable<'data, Elf> where
Elf::Endian: Debug,
impl<'data, Elf: Debug + FileHeader> Debug for VersionTable<'data, Elf> where
Elf::Endian: Debug,
Auto Trait Implementations
impl<'data, Elf> RefUnwindSafe for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
impl<'data, Elf> Send for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Sync for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: Sync,
impl<'data, Elf> Unpin for VersionTable<'data, Elf>
impl<'data, Elf> UnwindSafe for VersionTable<'data, Elf> where
<Elf as FileHeader>::Endian: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more