Struct lief::macho::relocation::Fixup
pub struct Fixup<'a> { /* private fields */ }
Expand description
Structure that represents a fixup (i.e. relocation) from the recent from LC_DYLD_CHAINED_FIXUPS
command
Implementations§
§impl Fixup<'_>
impl Fixup<'_>
pub fn target(&self) -> u64
pub fn target(&self) -> u64
The value that should be set at the address pointed by crate::Relocation::address
if the imagebase chosen by the loader is crate::generic::Binary::imagebase
.
Otherwise: Fixup::target
- crate::generic::Binary::imagebase
+ new_imagebase.
pub fn ptr_format(&self) -> u32
Trait Implementations§
§impl RelocationBase for Fixup<'_>
impl RelocationBase for Fixup<'_>
§fn is_pc_relative(&self) -> bool
fn is_pc_relative(&self) -> bool
Indicates whether the item containing the address to be
relocated is part of a CPU instruction that uses PC-relative addressing. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Fixup<'a>
impl<'a> !Send for Fixup<'a>
impl<'a> !Sync for Fixup<'a>
impl<'a> Unpin for Fixup<'a>
impl<'a> UnwindSafe for Fixup<'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