pub struct X64RelocationEngine;Expand description
x86_64 relocation engine
Implements the RelocationEngine trait for x86_64 PE32+ binaries.
Uses simple 64-bit pointer fixups (no instruction encoding required).
Trait Implementations§
Source§impl RelocationEngine for X64RelocationEngine
impl RelocationEngine for X64RelocationEngine
Source§fn apply_relocation(
&self,
image_data: &mut [u8],
entry: RelocationEntry,
page_rva: u32,
delta: i64,
) -> PeResult<()>
fn apply_relocation( &self, image_data: &mut [u8], entry: RelocationEntry, page_rva: u32, delta: i64, ) -> PeResult<()>
Apply relocation (add delta to relocated values)
Used when UEFI loads the image
Source§fn unapply_relocation(
&self,
image_data: &mut [u8],
entry: RelocationEntry,
page_rva: u32,
delta: i64,
) -> PeResult<()>
fn unapply_relocation( &self, image_data: &mut [u8], entry: RelocationEntry, page_rva: u32, delta: i64, ) -> PeResult<()>
Unapply relocation (subtract delta from relocated values)
Used when creating bootable image from memory
Auto Trait Implementations§
impl Freeze for X64RelocationEngine
impl RefUnwindSafe for X64RelocationEngine
impl Send for X64RelocationEngine
impl Sync for X64RelocationEngine
impl Unpin for X64RelocationEngine
impl UnwindSafe for X64RelocationEngine
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