pub struct Routine<'a> { /* private fields */ }
Expand description
Class that represents the LC_ROUTINE/LC_ROUTINE64
commands.
Accodring to the Mach-O loader.h
documentation:
The routines command contains the address of the dynamic shared library initialization routine and an index into the module table for the module that defines the routine. Before any modules are used from the library the dynamic linker fully binds the module that defines the initialization routine and then calls it. This gets called before any module initialization routines (used for C++ static constructors) in the library.
Implementations§
§impl Routine<'_>
impl Routine<'_>
pub fn init_address(&self) -> u64
pub fn init_address(&self) -> u64
address of initialization routine
pub fn init_module(&self) -> u64
pub fn init_module(&self) -> u64
Index into the module table that the init routine is defined in
pub fn reserved1(&self) -> u64
pub fn reserved2(&self) -> u64
pub fn reserved3(&self) -> u64
pub fn reserved4(&self) -> u64
pub fn reserved5(&self) -> u64
pub fn reserved6(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Routine<'a>
impl<'a> !Send for Routine<'a>
impl<'a> !Sync for Routine<'a>
impl<'a> Unpin for Routine<'a>
impl<'a> UnwindSafe for Routine<'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