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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 01:58:23 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
----------------
jh7370 wrote:

I'm guessing the formatting is important, in which case you should also have `--strict-whitespace`. You may also wish to consider `--implicit-check-not={{.}}`, to ensure that no output exists except that which is checked for.

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


More information about the llvm-commits mailing list