[llvm] [llvm-objdump] Print out xcoff file header for xcoff object file with option private-headers (PR #96350)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 11:47:50 PDT 2024


================
@@ -0,0 +1,38 @@
+## Test the --private-headers option for XCOFF object files.
+
+# RUN: yaml2obj -DMAGIC=0x1DF %s -o %t_xcoff32.o
+# RUN: yaml2obj -DMAGIC=0x1F7 %s -o %t_xcoff64.o
+# RUN: llvm-objdump --private-headers %t_xcoff32.o |\
+# RUN:   FileCheck %s --check-prefixes=CHECK32 --match-full-lines
----------------
diggerlin wrote:

I do check not all output of `llvm-objdump --private-headers`, for example:
`private-headers-option.test.tmp_xcoff32.o:        file format aixcoff-rs6000` , so I can not use `--implicit-check-not={{.}}` here

https://github.com/llvm/llvm-project/pull/96350


More information about the llvm-commits mailing list