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

@@ -338,7 +338,10 @@ fn map_section_relocations(
};
// TODO validate reloc here?
let mut addend = if reloc.has_implicit_addend() {
arch.implcit_addend(obj_file, obj_section, address, &reloc, flags)?
match arch.implcit_addend(obj_file, obj_section, address, &reloc, flags)? {
Some(addend) => addend,
None => continue, // Skip relocation (e.g. COFF PAIR relocations)
}
} else {
reloc.addend()
};