Skip to content

Commit 00cb4ee

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

objdiff-core/src/arch/arm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ 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 | elf::R_ARM_XPC25 | elf::R_ARM_CALL | elf::R_ARM_JUMP24 => {
349349
let data = section_data[address..address + 4].try_into()?;
350350
let addend = self.endianness.read_i32_bytes(data);
351351
let imm24 = addend & 0xffffff;

0 commit comments

Comments
 (0)