summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/sources/abort.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/sources/abort.c')
-rw-r--r--libc-bottom-half/sources/abort.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-bottom-half/sources/abort.c b/libc-bottom-half/sources/abort.c
new file mode 100644
index 0000000..95fe2be
--- /dev/null
+++ b/libc-bottom-half/sources/abort.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+void abort(void) {
+ // wasm doesn't support signals, so just trap to halt the program.
+ __builtin_trap();
+}