Struct goblin::mach::load_command::RoutinesCommand32
source · [−]#[repr(C)]pub struct RoutinesCommand32 {
pub cmd: u32,
pub cmdsize: u32,
pub init_address: u32,
pub init_module: u32,
pub reserved1: u32,
pub reserved2: u32,
pub reserved3: u32,
pub reserved4: u32,
pub reserved5: u32,
pub reserved6: u32,
}
Expand description
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.
Fields
cmd: u32
LC_ROUTINES
cmdsize: u32
total size of this command
init_address: u32
address of initialization routine
init_module: u32
index into the module table that the init routine is defined in
reserved1: u32
reserved2: u32
reserved3: u32
reserved4: u32
reserved5: u32
reserved6: u32
Trait Implementations
sourceimpl Clone for RoutinesCommand32
impl Clone for RoutinesCommand32
sourcefn clone(&self) -> RoutinesCommand32
fn clone(&self) -> RoutinesCommand32
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RoutinesCommand32
impl Debug for RoutinesCommand32
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for RoutinesCommand32 where
RoutinesCommand32: 'a,
impl<'a> TryFromCtx<'a, Endian, [u8]> for RoutinesCommand32 where
RoutinesCommand32: 'a,
sourceimpl<'a> TryIntoCtx<Endian, [u8]> for &'a RoutinesCommand32
impl<'a> TryIntoCtx<Endian, [u8]> for &'a RoutinesCommand32
sourceimpl TryIntoCtx<Endian, [u8]> for RoutinesCommand32
impl TryIntoCtx<Endian, [u8]> for RoutinesCommand32
impl Copy for RoutinesCommand32
Auto Trait Implementations
impl RefUnwindSafe for RoutinesCommand32
impl Send for RoutinesCommand32
impl Sync for RoutinesCommand32
impl Unpin for RoutinesCommand32
impl UnwindSafe for RoutinesCommand32
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more