(&self, flags: RelocationFlags)
| 426 | } |
| 427 | |
| 428 | fn data_reloc_size(&self, flags: RelocationFlags) -> usize { |
| 429 | match flags { |
| 430 | RelocationFlags::Elf(r_type) => match r_type { |
| 431 | elf::R_ARM_NONE => 0, |
| 432 | elf::R_ARM_ABS32 => 4, |
| 433 | elf::R_ARM_REL32 => 4, |
| 434 | elf::R_ARM_ABS16 => 2, |
| 435 | elf::R_ARM_ABS8 => 1, |
| 436 | elf::R_ARM_THM_PC22 => 4, |
| 437 | elf::R_ARM_THM_XPC22 => 4, |
| 438 | elf::R_ARM_PC24 => 4, |
| 439 | elf::R_ARM_XPC25 => 4, |
| 440 | elf::R_ARM_CALL => 4, |
| 441 | elf::R_ARM_THM_PC11 => 2, |
| 442 | elf::R_ARM_THM_PC9 => 2, |
| 443 | _ => 1, |
| 444 | }, |
| 445 | _ => 1, |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | fn symbol_address(&self, address: u64, kind: SymbolKind) -> u64 { |
| 450 | if kind == SymbolKind::Function { address & !1 } else { address } |
no outgoing calls
no test coverage detected