Merge branch 'GP-2802_ryanmkurtz_MachOProgramTree' into patch

(Closes #4724)
This commit is contained in:
Ryan Kurtz
2022-11-08 09:45:14 -05:00

View File

@@ -427,8 +427,18 @@ public class MachoProgramBuilder {
break;
}
}
if (segmentFragment == null) {
log.appendMsg("Could not find/fixup segment in Program Tree: " + segmentName);
continue;
}
ProgramModule segmentModule = rootModule.createModule(segmentName);
segmentModule.reparent(noSectionsName, rootModule);
try {
segmentModule.reparent(noSectionsName, rootModule);
}
catch (NotFoundException e) {
log.appendException(e);
continue;
}
// Add the sections, which will remove overlapped ranges from the segment fragment
for (Section section : segment.getSections()) {