summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-09-09 10:45:06 +0000
committerTim Northover <tnorthover@apple.com>2014-09-09 10:45:06 +0000
commit0b0add517b07d57b95f6a70088fcafcd2292893a (patch)
treef337c09d57fd01a115bb4ee00ffc05597a6f179e /llvm/test
parent9db22db963507494df061dc8722cac2460b2ac31 (diff)
downloadbcm5719-llvm-0b0add517b07d57b95f6a70088fcafcd2292893a.tar.gz
bcm5719-llvm-0b0add517b07d57b95f6a70088fcafcd2292893a.zip
llvm-objdump: don't crash when __compact_unwind has no relocs.
llvm-svn: 217433
Diffstat (limited to 'llvm/test')
-rwxr-xr-xllvm/test/tools/llvm-objdump/Inputs/unwind-info-no-relocs.macho-x86_64bin0 -> 12600 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/macho-unwind-info-no-relocs.test8
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/unwind-info-no-relocs.macho-x86_64 b/llvm/test/tools/llvm-objdump/Inputs/unwind-info-no-relocs.macho-x86_64
new file mode 100755
index 00000000000..a1fd6874035
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/Inputs/unwind-info-no-relocs.macho-x86_64
Binary files differ
diff --git a/llvm/test/tools/llvm-objdump/macho-unwind-info-no-relocs.test b/llvm/test/tools/llvm-objdump/macho-unwind-info-no-relocs.test
new file mode 100644
index 00000000000..3adad658c08
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/macho-unwind-info-no-relocs.test
@@ -0,0 +1,8 @@
+# RUN: llvm-objdump -unwind-info %p/Inputs/unwind-info-no-relocs.macho-x86_64 2>/dev/null | FileCheck %s
+
+# Make sure we can deal with __compact_unwind sections that don't have helpful
+# relocations.
+
+# CHECK: Contents of __compact_unwind section:
+# CHECK: Entry at offset 0x0:
+# CHECK: start: 0x100000f7e
OpenPOWER on IntegriCloud