MCPcopy Create free account
hub / github.com/encounter/objdiff / is_reg_index_reloc

Function is_reg_index_reloc

objdiff-core/src/arch/arm64.rs:2098–2107  ·  view source on GitHub ↗

Relocations that appear in Operand::RegPreIndex/RegPostIndex.

(resolved: Option<ResolvedRelocation>)

Source from the content-addressed store, hash-verified

2096
2097/// Relocations that appear in Operand::RegPreIndex/RegPostIndex.
2098fn is_reg_index_reloc(resolved: Option<ResolvedRelocation>) -> bool {
2099 resolved.is_some_and(|r| {
2100 matches!(
2101 r.relocation.flags,
2102 RelocationFlags::Elf(
2103 elf::R_AARCH64_LDST32_ABS_LO12_NC | elf::R_AARCH64_LD64_GOT_LO12_NC
2104 )
2105 )
2106 })
2107}
2108
2109fn push_operand<Cb>(args: &mut Cb, o: &Operand, ctx: &mut DisplayCtx)
2110where Cb: FnMut(InstructionPart<'static>) {

Callers 1

push_operandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected