According to WASI ABI spec, the assumed exec model for a WASI module can either be a command or a reactor. The former then uses crt1-command.o and the latter crt1-reactor.o when linking with wasm-ld. This therefore obsoletes the need for building and linking crt1.o especially as #9178 landed in master.
Tweaks necessary to the codebase:
- remove
lib/libc/wasi/libc-bottom-half/crt/crt1.c
- remove
crt1_o variant in src/wasi_libc.zig and any prong that would lead to it plus const crt1_src_file = "wasi/libc-bottom-half/crt/crt1.c";
According to WASI ABI spec, the assumed exec model for a WASI module can either be a command or a reactor. The former then uses
crt1-command.oand the lattercrt1-reactor.owhen linking withwasm-ld. This therefore obsoletes the need for building and linkingcrt1.oespecially as #9178 landed in master.Tweaks necessary to the codebase:
lib/libc/wasi/libc-bottom-half/crt/crt1.ccrt1_ovariant insrc/wasi_libc.zigand any prong that would lead to it plusconst crt1_src_file = "wasi/libc-bottom-half/crt/crt1.c";