[llvm] enable file-headers option of llvm-objdump for XCOFF object files (PR #96104)
zhijian lin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 06:31:42 PDT 2024
================
@@ -0,0 +1,21 @@
+# Test the `--file-headers` option of llvm-objdump for XCOFF object files.
+# RUN: yaml2obj %s -o %t1
+# RUN: llvm-objdump --file-headers %t1 | FileCheck %s --check-prefix=CHECK32
+# RUN: yaml2obj %s -DMAGIC=0x1F7 -DFLAG64=0x2 -o %t2
+# RUN: llvm-objdump --file-headers %t2 | FileCheck %s --check-prefix=CHECK64
+
+# CHECK32: {{.*}}file format aixcoff-rs6000
+# CHECK32-NEXT: architecture: powerpc
+# CHECK32-NEXT: start address: 0x00001111
+
+# CHECK64: {{.*}}file format aix5coff64-rs6000
+# CHECK64-NEXT: architecture: powerpc64
+# CHECK64-NEXT: start address: 0x0000000000001111
+
+--- !XCOFF
+FileHeader:
+ MagicNumber: [[MAGIC=0x1DF]]
+AuxiliaryHeader:
+ EntryPointAddr: 0x1111
+ FlagAndTDataAlignment: 0x1
+ Flag: [[FLAG64=<none>]]
----------------
diggerlin wrote:
thanks , I delete this one.
https://github.com/llvm/llvm-project/pull/96104
More information about the llvm-commits
mailing list