Skip to content

Commit d33c351

Browse files
committed
Fix "Unsupported ARM implicit relocation 29" on armcc binaries
1 parent 51c3af2 commit d33c351

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

objdiff-core/src/arch/arm.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ impl Arch for ArchArm {
345345
let address = address as usize;
346346
let addend = match r_type {
347347
// ARM calls
348-
elf::R_ARM_PC24 | elf::R_ARM_XPC25 | elf::R_ARM_CALL => {
348+
elf::R_ARM_PC24
349+
| elf::R_ARM_XPC25
350+
| elf::R_ARM_CALL
351+
| elf::R_ARM_JUMP24 => {
349352
let data = section_data[address..address + 4].try_into()?;
350353
let addend = self.endianness.read_i32_bytes(data);
351354
let imm24 = addend & 0xffffff;

0 commit comments

Comments
 (0)