Skip to content

Commit 2a1fd0c

Browse files
committed
Implement more ARM/Thumb relocation types
1 parent c02eb31 commit 2a1fd0c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

objdiff-core/src/arch/arm.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,10 @@ impl Arch for ArchArm {
356356
}
357357

358358
// Thumb calls
359-
elf::R_ARM_THM_PC22 | elf::R_ARM_THM_XPC22 => {
359+
elf::R_ARM_THM_PC8
360+
| elf::R_ARM_THM_PC11
361+
| elf::R_ARM_THM_PC22
362+
| elf::R_ARM_THM_XPC22 => {
360363
let data = section_data[address..address + 2].try_into()?;
361364
let high = self.endianness.read_i16_bytes(data) as i32;
362365
let data = section_data[address + 2..address + 4].try_into()?;

0 commit comments

Comments
 (0)