diff --git a/Ghidra/Processors/MIPS/src/main/java/ghidra/app/util/bin/format/elf/relocation/MIPS_ElfRelocationContext.java b/Ghidra/Processors/MIPS/src/main/java/ghidra/app/util/bin/format/elf/relocation/MIPS_ElfRelocationContext.java index 0fd09960ad..b0250ad0c2 100644 --- a/Ghidra/Processors/MIPS/src/main/java/ghidra/app/util/bin/format/elf/relocation/MIPS_ElfRelocationContext.java +++ b/Ghidra/Processors/MIPS/src/main/java/ghidra/app/util/bin/format/elf/relocation/MIPS_ElfRelocationContext.java @@ -72,8 +72,6 @@ class MIPS_ElfRelocationContext extends ElfRelocationContext>= 8; int nextRelocType = (n < 2) ? (typeId & 0xff) : 0; if (nextRelocType == MIPS_ElfRelocationType.R_MIPS_NONE.typeId) { - saveValueForNextReloc = false; + saveValueForNextReloc = nextRelocationHasSameOffset(relocation); + } + else { + saveValueForNextReloc = true; } RelocationResult result = @@ -117,6 +118,8 @@ class MIPS_ElfRelocationContext extends ElfRelocationContext