Add PPC COFF tests; fix IMAGE_REL_PPC_PAIR handling

This commit is contained in:
2025-07-17 21:19:06 -06:00
parent 3385f58341
commit 0fb7f3901c
13 changed files with 4485 additions and 41 deletions

View File

@@ -363,10 +363,10 @@ impl Arch for ArchArm {
address: u64,
_relocation: &object::Relocation,
flags: RelocationFlags,
) -> Result<i64> {
) -> Result<Option<i64>> {
let section_data = section.data()?;
let address = address as usize;
Ok(match flags {
Ok(Some(match flags {
// ARM calls
RelocationFlags::Elf(elf::R_ARM_PC24)
| RelocationFlags::Elf(elf::R_ARM_XPC25)
@@ -396,7 +396,7 @@ impl Arch for ArchArm {
}
flags => bail!("Unsupported ARM implicit relocation {flags:?}"),
} as i64)
} as i64))
}
fn demangle(&self, name: &str) -> Option<String> {