Struct ElfRawDynamic

Source
pub struct ElfRawDynamic {
Show 25 fields pub dyn_ptr: *const Dyn, pub hash_off: usize, pub symtab_off: usize, pub strtab_off: usize, pub flags: usize, pub got_off: Option<NonZeroUsize>, pub pltrel_off: Option<NonZeroUsize>, pub pltrel_size: Option<NonZeroUsize>, pub rela_off: Option<NonZeroUsize>, pub rela_size: Option<NonZeroUsize>, pub rela_count: Option<NonZeroUsize>, pub init_off: Option<NonZeroUsize>, pub fini_off: Option<NonZeroUsize>, pub init_array_off: Option<NonZeroUsize>, pub init_array_size: Option<NonZeroUsize>, pub fini_array_off: Option<NonZeroUsize>, pub fini_array_size: Option<NonZeroUsize>, pub version_ids_off: Option<NonZeroUsize>, pub verneed_off: Option<NonZeroUsize>, pub verneed_num: Option<NonZeroUsize>, pub verdef_off: Option<NonZeroUsize>, pub verdef_num: Option<NonZeroUsize>, pub needed_libs: Vec<NonZeroUsize>, pub rpath_off: Option<NonZeroUsize>, pub runpath_off: Option<NonZeroUsize>,
}
Expand description

Information in the dynamic section

Fields§

§dyn_ptr: *const Dyn§hash_off: usize

DT_GNU_HASH

§symtab_off: usize

DT_STMTAB

§strtab_off: usize

DT_STRTAB

§flags: usize

DT_FLAGS

§got_off: Option<NonZeroUsize>

DT_PLTGOT

§pltrel_off: Option<NonZeroUsize>

DT_JMPREL

§pltrel_size: Option<NonZeroUsize>

DT_PLTRELSZ

§rela_off: Option<NonZeroUsize>

DT_RELA

§rela_size: Option<NonZeroUsize>

DT_RELASZ

§rela_count: Option<NonZeroUsize>

DT_RELACOUNT

§init_off: Option<NonZeroUsize>

DT_INIT

§fini_off: Option<NonZeroUsize>

DT_FINI

§init_array_off: Option<NonZeroUsize>

DT_INIT_ARRAY

§init_array_size: Option<NonZeroUsize>

DT_INIT_ARRAYSZ

§fini_array_off: Option<NonZeroUsize>

DT_FINI_ARRAY

§fini_array_size: Option<NonZeroUsize>

DT_FINI_ARRAYSZ

§version_ids_off: Option<NonZeroUsize>

DT_VERSYM

§verneed_off: Option<NonZeroUsize>

DT_VERNEED

§verneed_num: Option<NonZeroUsize>

DT_VERNEEDNUM

§verdef_off: Option<NonZeroUsize>

DT_VERDEF

§verdef_num: Option<NonZeroUsize>

DT_VERDEFNUM

§needed_libs: Vec<NonZeroUsize>

DT_NEEDED

§rpath_off: Option<NonZeroUsize>

DT_RPATH

§runpath_off: Option<NonZeroUsize>

DT_RUNPATH

Implementations§

Source§

impl ElfRawDynamic

Source

pub fn new(dynamic_ptr: *const Dyn) -> Result<ElfRawDynamic>

Source

pub fn finish(self, base: usize) -> ElfDynamic

Map the offset address to an address in actual memory.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.