diff options
author | Kevin Enderby <enderby@apple.com> | 2014-12-19 19:48:16 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-12-19 19:48:16 +0000 |
commit | 36c8d3ae63c0026b2d36a420496ab9f9f9d966a4 (patch) | |
tree | a25b5e4eaa41e58fae04e538dcc7fc2bcebd3848 /llvm/test/tools/llvm-objdump | |
parent | 4aeb19893bab27da6ffc6f95a01c6a38d664dbd2 (diff) | |
download | bcm5719-llvm-36c8d3ae63c0026b2d36a420496ab9f9f9d966a4.tar.gz bcm5719-llvm-36c8d3ae63c0026b2d36a420496ab9f9f9d966a4.zip |
Add printing the LC_SUB_LIBRARY load command with llvm-objdump’s -private-headers.
llvm-svn: 224607
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rwxr-xr-x | llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubLibrary.macho-x86_64 | bin | 0 -> 4220 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-private-headers.test | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubLibrary.macho-x86_64 b/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubLibrary.macho-x86_64 Binary files differnew file mode 100755 index 00000000000..dafee5f8db3 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/Inputs/dylibSubLibrary.macho-x86_64 diff --git a/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test b/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test index c2023527bab..a650cc8e161 100644 --- a/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test +++ b/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test @@ -9,6 +9,8 @@ // RUN: | FileCheck %s -check-prefix=SUB_FRAME // RUN: llvm-objdump -p %p/Inputs/dylibSubUmbrella.macho-x86_64 \ // RUN: | FileCheck %s -check-prefix=SUB_UMB +// RUN: llvm-objdump -p %p/Inputs/dylibSubLibrary.macho-x86_64 \ +// RUN: | FileCheck %s -check-prefix=SUB_LIB CHECK: Mach header CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags @@ -393,3 +395,8 @@ SUB_UMB: Load command 5 SUB_UMB: cmd LC_SUB_UMBRELLA SUB_UMB: cmdsize 16 SUB_UMB: sub_umbrella Foo (offset 12) + +SUB_LIB: Load command 5 +SUB_LIB: cmd LC_SUB_LIBRARY +SUB_LIB: cmdsize 20 +SUB_LIB: sub_library libfoo (offset 12) |