GP-348_emteere fixed bad ehFrame addresses due to a fix elsewhere in the

code no longer needing a translation
This commit is contained in:
emteere
2020-11-03 09:32:00 -05:00
parent 021fbf8025
commit 71b50a6929

View File

@@ -269,14 +269,6 @@ public class FrameDescriptionEntry extends GccAnalysisClass {
createAndCommentData(program, addr, encodedDt, comment, CodeUnit.EOL_COMMENT);
if (pcBeginAddr.getOffset() != 0x0) {
// if the program was moved from a preferred image base, need to adjust
// the beginning of frame pointer
Long oib = ElfLoader.getElfOriginalImageBase(program);
if (oib != null) {
long imageBaseOffset = program.getImageBase().getOffset() - oib;
pcBeginAddr = pcBeginAddr.add(imageBaseOffset);
}
program.getReferenceManager().addMemoryReference(addr, pcBeginAddr, RefType.DATA,
SourceType.ANALYSIS, 0);
}