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,9 +357,15 @@ public class MIPS_ElfRelocationHandler
|
||||||
}
|
}
|
||||||
value = symbolValue;
|
value = symbolValue;
|
||||||
if (elfRelocationContext.extractAddend()) {
|
if (elfRelocationContext.extractAddend()) {
|
||||||
// extract addend based upon pointer size
|
// 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);
|
addend = memory.getInt(relocationAddress);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
newValue = value + addend;
|
newValue = value + addend;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue