summaryrefslogtreecommitdiff
path: root/src/terminate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminate.cc')
-rw-r--r--src/terminate.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/terminate.cc b/src/terminate.cc
new file mode 100644
index 0000000..663fe52
--- /dev/null
+++ b/src/terminate.cc
@@ -0,0 +1,14 @@
+#include <stdlib.h>
+
+namespace std
+{
+ /**
+ * Stub implementation of std::terminate. Used when the STL implementation
+ * doesn't provide one.
+ */
+ __attribute__((weak))
+ void terminate()
+ {
+ abort();
+ }
+}