mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-04 07:15:01 +08:00
Merge branch 'GP-0_ryanmkurtz_PR-5166_Gravelbones_omf_skip_comdat2'
This commit is contained in:
+2
-4
@@ -351,10 +351,8 @@ public class OmfFileHeader extends OmfRecord {
|
|||||||
header.groups.add(group);
|
header.groups.add(group);
|
||||||
}
|
}
|
||||||
else if (record instanceof OmfFixupRecord fixuprec) {
|
else if (record instanceof OmfFixupRecord fixuprec) {
|
||||||
if (lastDataBlock != null) {
|
fixuprec.setDataBlock(lastDataBlock);
|
||||||
fixuprec.setDataBlock(lastDataBlock);
|
header.fixup.add(fixuprec);
|
||||||
header.fixup.add(fixuprec);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (record instanceof OmfEnumeratedData enumheader) {
|
else if (record instanceof OmfEnumeratedData enumheader) {
|
||||||
header.addEnumeratedBlock(enumheader);
|
header.addEnumeratedBlock(enumheader);
|
||||||
|
|||||||
@@ -198,6 +198,9 @@ public class OmfLoader extends AbstractProgramWrapperLoader {
|
|||||||
int method, index, locationType = -1;
|
int method, index, locationType = -1;
|
||||||
locAddress = null;
|
locAddress = null;
|
||||||
|
|
||||||
|
if(fixup.getDataBlock() == null) {
|
||||||
|
continue; // If no data block don't try to fixup
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (subrec.isTargetThread()) {
|
if (subrec.isTargetThread()) {
|
||||||
Subrecord rec = targetThreads[subrec.getFixThreadNum()];
|
Subrecord rec = targetThreads[subrec.getFixThreadNum()];
|
||||||
|
|||||||
Reference in New Issue
Block a user