mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-1571 ELF: create fake relocation table entry for non-relocation memory modifications (needed for ELF export)
This commit is contained in:
@@ -113,9 +113,10 @@ public class PowerPC_ElfExtension extends ElfExtension {
|
||||
// Update first got entry normally updated by link editor to refer to dynamic table
|
||||
int dynamicOffset =
|
||||
memory.getInt(gotAddr) + (int) elfLoadHelper.getImageBaseWordAdjustmentOffset();
|
||||
elfLoadHelper.addFakeRelocTableEntry(gotAddr, 4);
|
||||
memory.setInt(gotAddr, dynamicOffset);
|
||||
}
|
||||
catch (MemoryAccessException e) {
|
||||
catch (MemoryAccessException | AddressOverflowException e) {
|
||||
elfLoadHelper.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user