summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-12-19 22:25:22 +0000
committerKevin Enderby <enderby@apple.com>2014-12-19 22:25:22 +0000
commit52e4ce4a536705e8776c6026ae5bfca5d480ad55 (patch)
tree346e57097c0e381c0ea1f26ff05efbd29ff8e40b /llvm/test
parent5459af15f9eaab5e7f28a74a45c811fbcd4e8e60 (diff)
downloadbcm5719-llvm-52e4ce4a536705e8776c6026ae5bfca5d480ad55.tar.gz
bcm5719-llvm-52e4ce4a536705e8776c6026ae5bfca5d480ad55.zip
Add printing the LC_ROUTINES load commands with llvm-objdump’s -private-headers.
llvm-svn: 224627
Diffstat (limited to 'llvm/test')
-rwxr-xr-xllvm/test/tools/llvm-objdump/X86/Inputs/dylibRoutines.macho-x86_64bin0 -> 4288 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-private-headers.test14
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/dylibRoutines.macho-x86_64 b/llvm/test/tools/llvm-objdump/X86/Inputs/dylibRoutines.macho-x86_64
new file mode 100755
index 00000000000..35680452a09
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/X86/Inputs/dylibRoutines.macho-x86_64
Binary files differ
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 2b26921d357..9f971d1c311 100644
--- a/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test
+++ b/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test
@@ -13,6 +13,8 @@
// RUN: | FileCheck %s -check-prefix=SUB_LIB
// RUN: llvm-objdump -p %p/Inputs/dylibSubClient.macho-x86_64 \
// RUN: | FileCheck %s -check-prefix=SUB_CLI
+// RUN: llvm-objdump -p %p/Inputs/dylibRoutines.macho-x86_64 \
+// RUN: | FileCheck %s -check-prefix=ROUTINE
CHECK: Mach header
CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
@@ -407,3 +409,15 @@ SUB_CLI: Load command 10
SUB_CLI: cmd LC_SUB_CLIENT
SUB_CLI: cmdsize 16
SUB_CLI: client bar (offset 12)
+
+ROUTINE: Load command 6
+ROUTINE: cmd LC_ROUTINES_64
+ROUTINE: cmdsize 72
+ROUTINE: init_address 0x0000000000000f80
+ROUTINE: init_module 0
+ROUTINE: reserved1 0
+ROUTINE: reserved2 0
+ROUTINE: reserved3 0
+ROUTINE: reserved4 0
+ROUTINE: reserved5 0
+ROUTINE: reserved6 0
OpenPOWER on IntegriCloud