diff --git a/objdiff-core/src/arch/ppc.rs b/objdiff-core/src/arch/ppc.rs index 4e184dd..520947d 100644 --- a/objdiff-core/src/arch/ppc.rs +++ b/objdiff-core/src/arch/ppc.rs @@ -513,6 +513,7 @@ fn guess_data_type_from_load_store_inst_op(inst_op: ppc750cl::Opcode) -> Option< } } +#[derive(Debug)] struct PoolReference { addr_src_gpr: ppc750cl::GPR, addr_offset: i16, @@ -645,7 +646,7 @@ fn make_fake_pool_reloc( // example, dCcD_Cyl in The Wind Waker). So just showing that vtable symbol plus an addend // to represent the offset into it works fine in this case. target_symbol = pool_reloc.relocation.target_symbol; - addend = pool_reloc.relocation.addend + offset_from_pool; + addend = offset_from_pool; } Some(Relocation { flags: RelocationFlags::Elf(elf::R_PPC_NONE),