Merge branch 'GP-0_ryanmkurtz_PR-5166_Gravelbones_omf_skip_comdat2'

This commit is contained in:
Ryan Kurtz 2023-03-28 07:59:15 -04:00
commit 1af765ef5c
2 changed files with 5 additions and 4 deletions

View File

@ -351,10 +351,8 @@ public class OmfFileHeader extends OmfRecord {
header.groups.add(group);
}
else if (record instanceof OmfFixupRecord fixuprec) {
if (lastDataBlock != null) {
fixuprec.setDataBlock(lastDataBlock);
header.fixup.add(fixuprec);
}
fixuprec.setDataBlock(lastDataBlock);
header.fixup.add(fixuprec);
}
else if (record instanceof OmfEnumeratedData enumheader) {
header.addEnumeratedBlock(enumheader);

View File

@ -198,6 +198,9 @@ public class OmfLoader extends AbstractProgramWrapperLoader {
int method, index, locationType = -1;
locAddress = null;
if(fixup.getDataBlock() == null) {
continue; // If no data block don't try to fixup
}
try {
if (subrec.isTargetThread()) {
Subrecord rec = targetThreads[subrec.getFixThreadNum()];