Struct goblin::elf::dynamic::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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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>,

§

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>,

§

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.