diff options
author | Kevin Enderby <enderby@apple.com> | 2016-01-13 00:25:36 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2016-01-13 00:25:36 +0000 |
commit | 0ae163f9ea00ebf413139f7e9a7456b703fa94a3 (patch) | |
tree | 945f37260b920c265bf7330d5dc5270ff0e05da3 /llvm/test | |
parent | c3498b07db58835dd9bf193aba04a2ec30093a33 (diff) | |
download | bcm5719-llvm-0ae163f9ea00ebf413139f7e9a7456b703fa94a3.tar.gz bcm5719-llvm-0ae163f9ea00ebf413139f7e9a7456b703fa94a3.zip |
For llvm-objdump, add the option -private-header (without the trailing ’s’)
to only print the first private header.
Which for Mach-O files only prints the Mach header and not the subsequent load
commands. Which is used by scripts to match what the darwin otool(1) with the
-h flag does without the -l flag.
For non-Mach-O files it has the same functionality as -private-headers (with
the trailing ’s’).
rdar://24158331
llvm-svn: 257548
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-private-header.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-private-header.test b/llvm/test/tools/llvm-objdump/X86/macho-private-header.test new file mode 100644 index 00000000000..d90072542a2 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/macho-private-header.test @@ -0,0 +1,6 @@ +// RUN: llvm-objdump -private-header %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s + +CHECK: Mach header +CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags +CHECK: MH_MAGIC_64 X86_64 ALL 0x00 OBJECT 3 496 SUBSECTIONS_VIA_SYMBOLS +CHECK-NOT: Load command |