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..7773e46c1a 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 @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -38,6 +38,21 @@ public class Omf51RecordTypes { 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 *