mirror of
https://github.com/encounter/objdiff.git
synced 2025-12-17 00:47:12 +00:00
Add PPC COFF tests; fix IMAGE_REL_PPC_PAIR handling
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user