goblin::elf::dynamic

Struct DynamicInfo

Source
pub struct DynamicInfo {
Show 34 fields pub rela: usize, pub relasz: usize, pub relaent: u64, pub relacount: usize, pub rel: usize, pub relsz: usize, pub relent: u64, pub relcount: usize, pub gnu_hash: Option<u64>, pub hash: Option<u64>, pub strtab: usize, pub strsz: usize, pub symtab: usize, pub syment: usize, pub pltgot: Option<u64>, pub pltrelsz: usize, pub pltrel: u64, pub jmprel: usize, pub verdef: u64, pub verdefnum: u64, pub verneed: u64, pub verneednum: u64, pub versym: u64, pub init: u64, pub fini: u64, pub init_array: u64, pub init_arraysz: usize, pub fini_array: u64, pub fini_arraysz: usize, pub needed_count: usize, pub flags: u64, pub flags_1: u64, pub soname: usize, pub textrel: bool,
}
Expand description

Important dynamic linking info generated via a single pass through the _DYNAMIC array

Fields§

§rela: usize§relasz: usize§relaent: u64§relacount: usize§rel: usize§relsz: usize§relent: u64§relcount: usize§gnu_hash: Option<u64>§hash: Option<u64>§strtab: usize§strsz: usize§symtab: usize§syment: usize§pltgot: Option<u64>§pltrelsz: usize§pltrel: u64§jmprel: usize§verdef: u64§verdefnum: u64§verneed: u64§verneednum: u64§versym: u64§init: u64§fini: u64§init_array: u64§init_arraysz: usize§fini_array: u64§fini_arraysz: usize§needed_count: usize§flags: u64§flags_1: u64§soname: usize§textrel: bool

Implementations§

Source§

impl DynamicInfo

Source

pub fn update(&mut self, phdrs: &[ProgramHeader], dynamic: &Dyn)

Source

pub fn new(dynamic: &[Dyn], phdrs: &[ProgramHeader]) -> DynamicInfo

Trait Implementations§

Source§

impl Debug for DynamicInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DynamicInfo

Source§

fn default() -> DynamicInfo

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DynamicInfo

Source§

fn eq(&self, other: &DynamicInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DynamicInfo

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.