summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/crt/crt1-reactor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-bottom-half/crt/crt1-reactor.c')
-rw-r--r--libc-bottom-half/crt/crt1-reactor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc-bottom-half/crt/crt1-reactor.c b/libc-bottom-half/crt/crt1-reactor.c
new file mode 100644
index 0000000..f507c9e
--- /dev/null
+++ b/libc-bottom-half/crt/crt1-reactor.c
@@ -0,0 +1,7 @@
+extern void __wasm_call_ctors(void);
+
+__attribute__((export_name("_initialize")))
+void _initialize(void) {
+ // The linker synthesizes this to call constructors.
+ __wasm_call_ctors();
+}