Skip to main content

patch_aarch64_branch26

Function patch_aarch64_branch26 

Source
pub fn patch_aarch64_branch26(
    buf: &mut [u8],
    off: usize,
    site_addr: u64,
    target: u64,
) -> Result<(), PatchError>
Expand description

aarch64 b/bl imm26: PC-relative, ±128 MiB, 4-byte units. Preserves the opcode bits, rewriting only the immediate.