Struct nnsdk::rtld::ModuleObject

source ·
#[repr(C)]
pub struct ModuleObject {
Show 23 fields pub next: *mut ModuleObject, pub prev: *mut ModuleObject, pub rela_or_rel_plt: ModuleObject__bindgen_ty_1, pub rela_or_rel: ModuleObject__bindgen_ty_2, pub module_base: u64, pub dynamic: *mut Elf64_Dyn, pub is_rela: bool, pub rela_or_rel_plt_size: u64, pub dt_init: Option<unsafe extern "C" fn()>, pub dt_fini: Option<unsafe extern "C" fn()>, pub hash_bucket: *mut u32, pub hash_chain: *mut u32, pub dynstr: *mut u8, pub dynsym: *mut Elf64_Sym, pub dynstr_size: u64, pub got: *mut *mut u8, pub rela_dyn_size: u64, pub rel_dyn_size: u64, pub rel_count: u64, pub rela_count: u64, pub hash_nchain_value: u64, pub hash_nbucket_value: u64, pub got_stub_ptr: u64,
}

Fields§

§next: *mut ModuleObject§prev: *mut ModuleObject§rela_or_rel_plt: ModuleObject__bindgen_ty_1§rela_or_rel: ModuleObject__bindgen_ty_2§module_base: u64§dynamic: *mut Elf64_Dyn§is_rela: bool§rela_or_rel_plt_size: u64§dt_init: Option<unsafe extern "C" fn()>§dt_fini: Option<unsafe extern "C" fn()>§hash_bucket: *mut u32§hash_chain: *mut u32§dynstr: *mut u8§dynsym: *mut Elf64_Sym§dynstr_size: u64§got: *mut *mut u8§rela_dyn_size: u64§rel_dyn_size: u64§rel_count: u64§rela_count: u64§hash_nchain_value: u64§hash_nbucket_value: u64§got_stub_ptr: u64

Implementations§

source§

impl ModuleObject

source

pub unsafe fn Initialize(&mut self, aslr_base: u64, dynamic: *mut Elf64_Dyn)

source

pub unsafe fn Relocate(&mut self)

source

pub unsafe fn GetSymbolByName(&mut self, name: *const u8) -> *mut Elf64_Sym

source

pub unsafe fn ResolveSymbols(&mut self, do_lazy_got_init: bool)

source

pub unsafe fn TryResolveSymbol( &mut self, target_symbol_address: *mut Elf64_Addr, symbol: *mut Elf64_Sym ) -> bool

Trait Implementations§

source§

impl Clone for ModuleObject

source§

fn clone(&self) -> ModuleObject

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for ModuleObject

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.