pub fn patch_x64_rel32(
buf: &mut [u8],
off: usize,
site_addr: u64,
target: u64,
addend: i64,
) -> Result<(), PatchError>Expand description
x86-64 rip-relative disp32 (jmp/call/lea/mov):
disp = target + addend − field_address, with the rip-after-displacement
distance already NORMALIZED into the addend at extraction time (ELF bakes
it in natively; build.rs adjusts Mach-O and COFF to match).