Skip to main content

patch_aarch64_pageoff12

Function patch_aarch64_pageoff12 

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

aarch64 add/ldr lo12: the low 12 bits of the target, shifted right by the access-size scale for loads/stores.