MCPcopy Index your code
hub / github.com/encounter/objdiff / reloc_name

Method reloc_name

objdiff-core/src/arch/arm.rs:407–426  ·  view source on GitHub ↗
(&self, flags: RelocationFlags)

Source from the content-addressed store, hash-verified

405 }
406
407 fn reloc_name(&self, flags: RelocationFlags) -> Option<&'static str> {
408 match flags {
409 RelocationFlags::Elf(r_type) => match r_type {
410 elf::R_ARM_NONE => Some("R_ARM_NONE"),
411 elf::R_ARM_ABS32 => Some("R_ARM_ABS32"),
412 elf::R_ARM_REL32 => Some("R_ARM_REL32"),
413 elf::R_ARM_ABS16 => Some("R_ARM_ABS16"),
414 elf::R_ARM_ABS8 => Some("R_ARM_ABS8"),
415 elf::R_ARM_THM_PC22 => Some("R_ARM_THM_PC22"),
416 elf::R_ARM_THM_XPC22 => Some("R_ARM_THM_XPC22"),
417 elf::R_ARM_PC24 => Some("R_ARM_PC24"),
418 elf::R_ARM_XPC25 => Some("R_ARM_XPC25"),
419 elf::R_ARM_CALL => Some("R_ARM_CALL"),
420 elf::R_ARM_THM_PC11 => Some("R_ARM_THM_PC11"),
421 elf::R_ARM_THM_PC9 => Some("R_ARM_THM_PC9"),
422 _ => None,
423 },
424 _ => None,
425 }
426 }
427
428 fn data_reloc_size(&self, flags: RelocationFlags) -> usize {
429 match flags {

Callers 2

relocation_hoverFunction · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected