summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-01-28 22:35:48 +0000
committerLang Hames <lhames@gmail.com>2016-01-28 22:35:48 +0000
commit2d8a2aa60a941b23453151da3bd6650e46c0bbf6 (patch)
treeb24024a599b2da1a49e8b7adc460b5cffc0a7ab9 /llvm/test/ExecutionEngine
parent56d207331972f4eb3d0d9fd971d2e80a6c6d771d (diff)
downloadbcm5719-llvm-2d8a2aa60a941b23453151da3bd6650e46c0bbf6.tar.gz
bcm5719-llvm-2d8a2aa60a941b23453151da3bd6650e46c0bbf6.zip
[RuntimeDyld][MachO] Fix handling of empty eh-frame sections.
This patch switches from an unguarded to a guarded loop for eh-frame record fixups. In the unguarded version we would always make at least one call to processFDE, which would then crash trying to fix up a frame that didn't exist. Fixes <rdar://problem/24301582> llvm-svn: 259103
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_empty_ehframe.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_empty_ehframe.s b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_empty_ehframe.s
new file mode 100644
index 00000000000..d912867b8ec
--- /dev/null
+++ b/llvm/test/ExecutionEngine/RuntimeDyld/X86/MachO_empty_ehframe.s
@@ -0,0 +1,7 @@
+# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %T/empty_eh_frame.o %s
+# RUN: llvm-rtdyld -verify -triple=x86_64-apple-macosx10.9 %T/empty_eh_frame.o
+
+ .section __TEXT,__eh_frame
+ .macosx_version_min 10, 10
+
+.subsections_via_symbols
OpenPOWER on IntegriCloud