mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 14:08:03 -05:00
GP-5918 Corrected ELF Relocation regression for MIPS 64-bit introduced
with GP-5826 in Ghidra 11.4.1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user