aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/cxxabi-compat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/wirish/cxxabi-compat.cpp b/wirish/cxxabi-compat.cpp
new file mode 100644
index 0000000..516b112
--- /dev/null
+++ b/wirish/cxxabi-compat.cpp
@@ -0,0 +1,6 @@
+/* We compile with nodefaultlibs, so we need to provide an error
+ * handler for an empty pure virtual function */
+extern "C" void __cxa_pure_virtual(void) {
+ while(1)
+ ;
+}