summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-03-16 20:08:09 +0000
committerKevin Enderby <enderby@apple.com>2015-03-16 20:08:09 +0000
commitbc847fa4eddb28fbc18d8b28f1dc2c431ee0977e (patch)
tree2e0822ec30179daea63eda64a80b247c6a689486 /llvm/test/tools/llvm-objdump
parent928c39381060ff61ad7610dc1a8bb446bb41ddcd (diff)
downloadbcm5719-llvm-bc847fa4eddb28fbc18d8b28f1dc2c431ee0977e.tar.gz
bcm5719-llvm-bc847fa4eddb28fbc18d8b28f1dc2c431ee0977e.zip
Add the options, -dylibs-used and -dylib-id to llvm-objdump used with -macho
to print the Mach-O dynamic shared libraries used by a linked image or the library id of a shared library. llvm-svn: 232406
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-dylib.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-dylib.test b/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
new file mode 100644
index 00000000000..0e31b8b930e
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/X86/macho-dylib.test
@@ -0,0 +1,6 @@
+RUN: llvm-objdump -m -dylibs-used %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=USED
+RUN: llvm-objdump -m -dylib-id %p/Inputs/dylibLoadKinds.macho-x86_64 | FileCheck %s -check-prefix=ID
+
+USED: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
+
+ID: /usr/lib/foo.dylib
OpenPOWER on IntegriCloud