Skip to content

Ghidra is a software reverse engineering (SRE) framework

Update Omf51RecordTypes.java

gtackettc6d8991381c2
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf51/Omf51RecordTypes.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf51/Omf51RecordTypes.java
index 2248d8932d..32299b9706 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf51/Omf51RecordTypes.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/omf51/Omf51RecordTypes.java
@@ -37,6 +37,25 @@ public class Omf51RecordTypes {
public final static int LibModName = 0x28;
public final static int LibDictionary = 0x2a;
public final static int LibHeader = 0x2c;
+ /*
+ * The five following record types with names ending in "Keil", which are
+ * produced by ARM Keil's 8051 tooling, are only slight variants of the
+ * similarly-named record types in the Intel spec.
+ */
+ public final static int SegmentDEFKeil = SegmentDEF + 1;
+ public final static int ScopeDEFKeil = ScopeDEF + 1;
+ public final static int DebugItemKeil = DebugItem + 1;
+ public final static int PublicDEFKeil = PublicDEF + 1;
+ /*
+ * The three type values 0x62, 0x63, and 0x64, which are
+ * produced by ARM Keil's 8051 toolchain, contain data that is used for
+ * source-level debugging in the company's uVision IDE--such information as
+ * function prototypes, struct definitions, function variable names and types, etc.
+ * As more is learned about their content, more descriptive names could be considered.
+ */
+ public final static int DebugData62Keil = 0x62;
+ public final static int DebugData63Keil = 0x63;
+ public final static int DebugData64Keil = 0x64;
/**
* Gets the name of the given record type