pub struct ELFParser<'a> { /* private fields */ }Expand description
A wrapper for the ELF file data with some useful methods.
Implementations§
Source§impl<'a> ELFParser<'a>
impl<'a> ELFParser<'a>
Sourcepub fn new(
headers: &'a ELFHeaders<'a>,
bias: usize,
) -> Result<Self, &'static str>
pub fn new( headers: &'a ELFHeaders<'a>, bias: usize, ) -> Result<Self, &'static str>
Create a new ELFInfo instance.
pub fn headers(&self) -> &'a ELFHeaders<'a>
Sourcepub fn aux_vector(
&self,
pagesz: usize,
ldso_base: Option<usize>,
) -> impl Iterator<Item = AuxEntry>
pub fn aux_vector( &self, pagesz: usize, ldso_base: Option<usize>, ) -> impl Iterator<Item = AuxEntry>
Part of auxiliary vectors from the ELF file.
§Arguments
pagesz- The page size of the systemldso_base- The base address of the dynamic linker (if exists)
Details about auxiliary vectors are described in https://articles.manugarg.com/aboutelfauxiliaryvectors.html
Auto Trait Implementations§
impl<'a> Freeze for ELFParser<'a>
impl<'a> RefUnwindSafe for ELFParser<'a>
impl<'a> Send for ELFParser<'a>
impl<'a> Sync for ELFParser<'a>
impl<'a> Unpin for ELFParser<'a>
impl<'a> UnwindSafe for ELFParser<'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