mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Merge remote-tracking branch 'origin/GP-5918_ELF_MIPS64_RelocationFix' into patch
This commit is contained in:
commit
cf61a2ffaf
1 changed files with 8 additions and 2 deletions
|
@ -357,8 +357,14 @@ public class MIPS_ElfRelocationHandler
|
|||
}
|
||||
value = symbolValue;
|
||||
if (elfRelocationContext.extractAddend()) {
|
||||
// extract addend based upon pointer size
|
||||
addend = memory.getInt(relocationAddress);
|
||||
// Extract addend based upon pointer size when saving 64-bit addend
|
||||
// for packed relocation type
|
||||
if (saveValue && program.getDefaultPointerSize() == 8) {
|
||||
addend = memory.getLong(relocationAddress);
|
||||
}
|
||||
else {
|
||||
addend = memory.getInt(relocationAddress);
|
||||
}
|
||||
}
|
||||
|
||||
newValue = value + addend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue