Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/patch'

ghidra106e3a568bc14
diff --cc Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MemorySectionResolver.java
index 042213195e,c64c04105b..fdd2f67513
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MemorySectionResolver.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MemorySectionResolver.java
@@@ -377,18 -368,12 +377,12 @@@ public abstract class MemorySectionReso
maxAddr = block.getEnd();
}
else {
- // block may be null due to unexpected conflict
- // block may be null due to unexpected conflict - allow to continue
- block = createInitializedBlock(section.key, false, blockName, address,
++ // block may be null due to unexpected conflict or pruning - allow to continue
+ block = createInitializedBlock(section.key, false, blockName, physicalStartAddr,
fileOffset, rangeSize, section.getComment(), section.isReadable(),
section.isWritable(), section.isExecute(), monitor);
- minAddr = address;
- maxAddr = address.addNoWrap(rangeSize - 1);
+ minAddr = physicalStartAddr;
+ maxAddr = physicalStartAddr.addNoWrap(rangeSize - 1);
- if (block == null) {
- // This is a bug but allow load to continue by not referring to block below
- Msg.error(this,
- "Unexpected ELF memory bock load conflict when creating '" + blockName +
- "' at " + minAddr.toString(true) + "-" + maxAddr.toString(true));
- }
}
if (fileLoadRangeMap != null) {
long chunkFileOffset = section.getFileOffset() + sectionByteOffset;