Struct LazyLoadDylibInfo
pub struct LazyLoadDylibInfo<'a> { /* private fields */ }Expand description
Class representing the LC_LAZY_LOAD_DYLIB_INFO load command.
This command describes how to lazily load a dylib: instead of binding
the library and its symbols at launch time, dyld keeps the information
required to resolve the dylib on the first use of one of its symbols.
Implementations§
§impl LazyLoadDylibInfo<'_>
impl LazyLoadDylibInfo<'_>
pub fn data_offset(&self) -> u32
pub fn data_offset(&self) -> u32
Offset in the __LINKEDIT segment where the payload is located
pub fn flag_image_offset(&self) -> u32
pub fn flag_image_offset(&self) -> u32
Image offset of the global flag that is set once the dylib has been loaded by dyld
pub fn flags(&self) -> u16
pub fn flags(&self) -> u16
Raw flags associated with this command (see LazyLoadDylibInfo::may_be_missing)
pub fn may_be_missing(&self) -> bool
pub fn may_be_missing(&self) -> bool
Whether the dylib is allowed to be missing at runtime (weak linked)
pub fn pointer_format(&self) -> u16
pub fn pointer_format(&self) -> u16
Chained-fixups pointer format used by the binding chain
pub fn chain_start_image_offset(&self) -> u32
pub fn chain_start_image_offset(&self) -> u32
Image offset of the fixup chain start used to bind the dylib’s symbols
pub fn set_load_path(&mut self, value: &str)
pub fn set_load_path(&mut self, value: &str)
Change the load path of the dylib to bind lazily. The new path is serialized into the payload when the binary is rebuilt.
pub fn set_flag_image_offset(&mut self, value: u32)
pub fn set_flag_image_offset(&mut self, value: u32)
Set the image offset of the global “loaded” flag.
pub fn set_may_be_missing(&mut self, value: bool)
pub fn set_may_be_missing(&mut self, value: bool)
Set or clear the “may be missing” (weak linked) flag bit.
pub fn set_pointer_format(&mut self, value: u16)
pub fn set_pointer_format(&mut self, value: u16)
Set the chained-fixups pointer format used by the binding chain.
pub fn set_chain_start_image_offset(&mut self, value: u32)
pub fn set_chain_start_image_offset(&mut self, value: u32)
Set the image offset of the fixup chain start.
pub fn add_symbol(&mut self, value: &str)
pub fn add_symbol(&mut self, value: &str)
Append a symbol name to the list of symbols to bind lazily.
pub fn set_symbols(&mut self, symbols: &[&str])
pub fn set_symbols(&mut self, symbols: &[&str])
Replace the list of symbol names to bind lazily. The new list is serialized into the payload when the binary is rebuilt.