mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 00:05:31 +08:00
GP-0: Formatting
This commit is contained in:
+2
-2
@@ -256,8 +256,8 @@ public class OmfFileHeader extends OmfRecord {
|
|||||||
* @throws IOException for problems reading program data
|
* @throws IOException for problems reading program data
|
||||||
* @throws OmfException for malformed records
|
* @throws OmfException for malformed records
|
||||||
*/
|
*/
|
||||||
public static OmfFileHeader scan(BinaryReader reader, TaskMonitor monitor,
|
public static OmfFileHeader scan(BinaryReader reader, TaskMonitor monitor, boolean fastscan)
|
||||||
boolean fastscan) throws IOException, OmfException {
|
throws IOException, OmfException {
|
||||||
OmfRecord record = OmfRecord.readRecord(reader);
|
OmfRecord record = OmfRecord.readRecord(reader);
|
||||||
if (!(record instanceof OmfFileHeader)) {
|
if (!(record instanceof OmfFileHeader)) {
|
||||||
throw new OmfException("Object file does not start with proper header");
|
throw new OmfException("Object file does not start with proper header");
|
||||||
|
|||||||
@@ -243,8 +243,7 @@ public class OmfLoader extends AbstractProgramWrapperLoader {
|
|||||||
OmfSegmentHeader seg =
|
OmfSegmentHeader seg =
|
||||||
header.resolveSegment(fixup.getDataBlock().getSegmentIndex());
|
header.resolveSegment(fixup.getDataBlock().getSegmentIndex());
|
||||||
locAddress = seg.getAddress(language)
|
locAddress = seg.getAddress(language)
|
||||||
.add(
|
.add(fixup.getDataBlock().getDataOffset() +
|
||||||
fixup.getDataBlock().getDataOffset() +
|
|
||||||
subrec.getDataRecordOffset());
|
subrec.getDataRecordOffset());
|
||||||
if (locAddress == null) {
|
if (locAddress == null) {
|
||||||
log.appendMsg("Couldn't find address for fixup");
|
log.appendMsg("Couldn't find address for fixup");
|
||||||
@@ -551,7 +550,8 @@ public class OmfLoader extends AbstractProgramWrapperLoader {
|
|||||||
Map<String, OmfSymbol> publicSymbols = header.getPublicSymbols()
|
Map<String, OmfSymbol> publicSymbols = header.getPublicSymbols()
|
||||||
.stream()
|
.stream()
|
||||||
.flatMap(symbolRec -> symbolRec.getSymbols().stream())
|
.flatMap(symbolRec -> symbolRec.getSymbols().stream())
|
||||||
.collect(Collectors.toMap(sym -> sym.getName(), java.util.function.Function.identity()));
|
.collect(
|
||||||
|
Collectors.toMap(sym -> sym.getName(), java.util.function.Function.identity()));
|
||||||
|
|
||||||
monitor.setMessage("Creating External Symbols");
|
monitor.setMessage("Creating External Symbols");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user