wasi-libc/libc-bottom-half/crt/crt1-reactor.c
Dan Gohman a6d0b4c74b
Reactor support. (#74)
* Add support for the Reactor model.

* Mark _activate and _start as wasm exports.

* Rename _activate to _initialize.

* Don't define `_fini`.

* Rename reactor-crt1.c to crt1-reactor.c.
2020-05-29 09:09:58 -07:00

8 lines
191 B
C

extern void __wasm_call_ctors(void);
__attribute__((export_name("_initialize")))
void _initialize(void) {
// The linker synthesizes this to call constructors.
__wasm_call_ctors();
}