summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-01-15 23:19:11 +0000
committerKevin Enderby <enderby@apple.com>2015-01-15 23:19:11 +0000
commit13023a1af6965374b0c253e8092cc36fbb46dcab (patch)
tree5e1b401f091d050b62116b111932a059146663a4 /llvm/test/tools/llvm-objdump
parentcb92c19fc4ac08a6e8e4806ce6f217d2e4f83b5c (diff)
downloadbcm5719-llvm-13023a1af6965374b0c253e8092cc36fbb46dcab.tar.gz
bcm5719-llvm-13023a1af6965374b0c253e8092cc36fbb46dcab.zip
Add the option, -archive-headers, used with -macho to print the Mach-O archive headers to llvm-objdump.
llvm-svn: 226228
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test b/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test
new file mode 100644
index 00000000000..3d9043e671a
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/X86/macho-archive-headers.test
@@ -0,0 +1,10 @@
+RUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 -macho -archive-headers -arch all \
+RUN: | FileCheck %s
+
+# Note the date as printed by ctime(3) is time zone dependent and not checked.
+CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
+CHECK: -rw-r--r--124/11 44 {{.*}} __.SYMDEF SORTED
+CHECK: -rw-r--r--124/0 860 {{.*}} hello.o
+CHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
+CHECK: -rw-r--r--124/11 60 {{.*}} __.SYMDEF SORTED
+CHECK: -rw-r--r--124/0 388 {{.*}} foo.o
OpenPOWER on IntegriCloud