Ghidra is a software reverse engineering (SRE) framework
Revert GP-1575_emteere_FDErecordFix
ghidra115234dfea616
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/AbstractDwarfEHDecoder.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/AbstractDwarfEHDecoder.javaindex 1d0298a2e5..741ca0dba2 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/AbstractDwarfEHDecoder.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/AbstractDwarfEHDecoder.java@@ -333,13 +333,7 @@ abstract class AbstractDwarfEHDecoder implements DwarfEHDecoder {switch (appMode) {case DW_EH_PE_absptr:- // if the program has been re-based, need to add in the image base difference.- // but only if there are no relocations at this location- if (prog.getRelocationTable().getRelocation(addr) == null) {- long programBaseAddressFixup = context.getOriginalImageBaseOffset();-- val = val + programBaseAddressFixup;- }+ // just pass this throughbreak;case DW_EH_PE_aligned:diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/DwarfDecodeContext.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/DwarfDecodeContext.javaindex 6357323392..e4177210af 100644--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/DwarfDecodeContext.java+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/exceptionhandlers/gcc/DwarfDecodeContext.java@@ -15,7 +15,6 @@*/package ghidra.app.plugin.exceptionhandlers.gcc;-import ghidra.app.util.opinion.ElfLoader;import ghidra.program.model.address.Address;import ghidra.program.model.listing.Function;import ghidra.program.model.listing.Program;@@ -35,7 +34,6 @@ public class DwarfDecodeContext {private Object decodedValue;private int encodedLength;private MemBuffer buffer;- private long originalImageBaseOffset; // offset from image base used in original dwarf, and the actual load image base/*** Constructs a Dwarf decode context.@@ -98,8 +96,6 @@ public class DwarfDecodeContext {this.ehBlock = ehBlock;this.functionEntryPoint = entryPoint;- Long oib = ElfLoader.getElfOriginalImageBase(program);- this.originalImageBaseOffset = program.getImageBase().getOffset() - oib.longValue();}/**@@ -184,12 +180,4 @@ public class DwarfDecodeContext {public Address getFunctionEntryPoint() {return functionEntryPoint;}-- /**- * Gets the offset from the programs image base and the dwarf original image base- * @return offset that if added to the current image base would be the original dwarf image base- */- public long getOriginalImageBaseOffset() {- return originalImageBaseOffset;- }}