pub struct DyldChainedFixups<'a> { /* private fields */ }
Expand description

Structure that represents the LC_DYLD_CHAINED_FIXUPS command

This command aims at providing rebase and binding information like the DyldInfo’s bytecode. Compared to the DyldInfo bytecode, these chained fixups are taking less space.

Implementations§

§

impl DyldChainedFixups<'_>

pub fn data_offset(&self) -> u32

Offset of the LC_DYLD_CHAINED_FIXUPS chained payload. This offset should point in the __LINKEDIT segment

pub fn data_size(&self) -> u32

Size of the LC_DYLD_CHAINED_FIXUPS payload.

pub fn fixups_version(&self) -> u32

Chained fixups version. The loader (dyld v852.2) checks that this value is set to 0

pub fn starts_offset(&self) -> u32

offset of dyld_chained_starts_in_image in chain_data

pub fn imports_offset(&self) -> u32

Offset of imports table in chain data

pub fn symbols_offset(&self) -> u32

Offset of symbol strings in chain data

pub fn imports_count(&self) -> u32

Number of imported symbol names

pub fn symbols_format(&self) -> u32

The compression algorithm (if any) used to store the symbols 0 means uncompressed while 1 means zlib compressed.

As far of the version v852.2 of dyld loader, it only supports uncompressed format

pub fn imports_format(&self) -> CHAINED_FORMAT

The format of the imports

pub fn bindings(&self) -> Bindings<'_>

Iterator over the bindings crate::macho::BindingInfo::Chained associated with this command

pub fn payload(&self) -> &[u8]

Return the raw content of the command

Trait Implementations§

§

impl Command for DyldChainedFixups<'_>

§

fn size(&self) -> u32

Size of the command (should be greather than sizeof(load_command))
§

fn offset(&self) -> u64

Offset of the command within the Load Command Table
§

fn command_type(&self) -> LoadCommandTypes

The command’s type
§

fn data(&self) -> &[u8]

The raw command as a slice of bytes
§

impl Debug for DyldChainedFixups<'_>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for DyldChainedFixups<'a>

§

impl<'a> !Send for DyldChainedFixups<'a>

§

impl<'a> !Sync for DyldChainedFixups<'a>

§

impl<'a> Unpin for DyldChainedFixups<'a>

§

impl<'a> UnwindSafe for DyldChainedFixups<'a>

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.