mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-10-18 20:33:56 +00:00

* 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.
8 lines
191 B
C
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();
|
|
}
|