mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge branch 'GP-2802_ryanmkurtz_MachOProgramTree' into patch
(Closes #4724)
This commit is contained in:
@@ -427,8 +427,18 @@ public class MachoProgramBuilder {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (segmentFragment == null) {
|
||||||
|
log.appendMsg("Could not find/fixup segment in Program Tree: " + segmentName);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
ProgramModule segmentModule = rootModule.createModule(segmentName);
|
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
|
// Add the sections, which will remove overlapped ranges from the segment fragment
|
||||||
for (Section section : segment.getSections()) {
|
for (Section section : segment.getSections()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user