[llvm] [llvm-objdump] Print out xcoff file header for xcoff object file with option private-headers (PR #96350)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 02:13:30 PDT 2024
================
@@ -18,21 +22,29 @@ Sections:
Flags: [ STYP_DATA ]
SectionData: "0000000000000FC0"
-# CHECK32: ---File Header:
-# CHECK32-NEXT: Magic: 0x1df
-# CHECK32-NEXT: NumberOfSections: 2
-# CHECK32-NEXT: TimeStamp: None (0)
-# CHECK32-NEXT: SymbolTableOffset: 0x0
-# CHECK32-NEXT: SymbolTableEntries: 0
-# CHECK32-NEXT: OptionalHeaderSize: 0x0
-# CHECK32-NEXT: Flags: 0x0
+# CHECK32:---File Header:
+# CHECK32-NEXT:Magic: 0x1df
+# CHECK32-NEXT:NumberOfSections: 2
+# CHECK32-NEXT:TimeStamp: None (0)
+# CHECK32-NEXT:SymbolTableOffset: 0x0
+# CHECK32-NEXT:SymbolTableEntries: 0
+# CHECK32-NEXT:OptionalHeaderSize: 0x0
+# CHECK32-NEXT:Flags: 0x0
+
+# CHECK64:---File Header:
+# CHECK64-NEXT:Magic: 0x1f7
+# CHECK64-NEXT:NumberOfSections: 2
+# CHECK64-NEXT:TimeStamp: None (0)
+# CHECK64-NEXT:SymbolTableOffset: 0x0
+# CHECK64-NEXT:SymbolTableEntries: 0
+# CHECK64-NEXT:OptionalHeaderSize: 0x0
+# CHECK64-NEXT:Flags: 0x0
-# CHECK64: ---File Header:
-# CHECK64-NEXT: Magic: 0x1f7
-# CHECK64-NEXT: NumberOfSections: 2
-# CHECK64-NEXT: TimeStamp: None (0)
-# CHECK64-NEXT: SymbolTableOffset: 0x0
-# CHECK64-NEXT: SymbolTableEntries: 0
-# CHECK64-NEXT: OptionalHeaderSize: 0x0
-# CHECK64-NEXT: Flags: 0x0
+--- !XCOFF
+FileHeader:
+ MagicNumber: 0x1DF
+ CreationTime: 1234
+ EntriesInSymbolTable: -1
----------------
jh7370 wrote:
Line the values up
```suggestion
MagicNumber: 0x1DF
CreationTime: 1234
EntriesInSymbolTable: -1
```
https://github.com/llvm/llvm-project/pull/96350
More information about the llvm-commits
mailing list