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

@@ -364,7 +364,7 @@ pub trait Arch: Send + Sync + Debug {
address: u64,
relocation: &object::Relocation,
flags: RelocationFlags,
) -> Result<i64>;
) -> Result<Option<i64>>;
fn demangle(&self, _name: &str) -> Option<String> { None }
@@ -463,8 +463,8 @@ impl Arch for ArchDummy {
_address: u64,
_relocation: &object::Relocation,
_flags: RelocationFlags,
) -> Result<i64> {
Ok(0)
) -> Result<Option<i64>> {
Ok(Some(0))
}
fn data_reloc_size(&self, _flags: RelocationFlags) -> usize { 0 }