This PR is in reference to porting LLDB on AIX. Link to discussions on llvm discourse and github: 1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640 2. https://github.com/llvm/llvm-project/issues/101657 The complete changes for porting are present in this draft PR: https://github.com/llvm/llvm-project/pull/102601 Added XCOFF Object File Header Parsing for AIX. Details about XCOFF file format on AIX: [XCOFF](https://www.ibm.com/docs/en/aix/7.3?topic=formats-xcoff-object-file-format)
28 lines
652 B
YAML
28 lines
652 B
YAML
# RUN: yaml2obj %s -o %t
|
|
# RUN: lldb-test object-file %t | FileCheck %s
|
|
|
|
# CHECK: Plugin name: xcoff
|
|
# CHECK: Architecture: powerpc64-ibm-aix
|
|
# CHECK: Executable: true
|
|
# CHECK: Stripped: false
|
|
# CHECK: Type: executable
|
|
# CHECK: Strata: unknown
|
|
|
|
--- !XCOFF
|
|
FileHeader:
|
|
MagicNumber: 0x1F7
|
|
NumberOfSections: 1
|
|
CreationTime: 000000000
|
|
Flags: 0x0002
|
|
Sections:
|
|
- Name: .text
|
|
Address: 0x100000438
|
|
Size: 0x38
|
|
FileOffsetToData: 0x0
|
|
FileOffsetToLineNumbers: 0x0
|
|
NumberOfLineNumbers: 0x0
|
|
Flags: [ STYP_TEXT ]
|
|
SectionData: E8C20000E94204
|
|
StringTable: {}
|
|
...
|