We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1176e2f commit 551f284Copy full SHA for 551f284
1 file changed
libc-bottom-half/crt/crt1.c
@@ -65,9 +65,6 @@ static __wasi_errno_t populate_environ() {
65
}
66
67
void _start(void) {
68
- /* The linker synthesizes this to call constructors. */
69
- __wasm_call_ctors();
70
-
71
/* Fill in the environment from WASI syscalls. */
72
if (populate_environ() != __WASI_ESUCCESS) {
73
_Exit(EX_OSERR);
@@ -80,6 +77,9 @@ void _start(void) {
80
77
81
78
82
79
+ /* The linker synthesizes this to call constructors. */
+ __wasm_call_ctors();
+
83
/* Call main with the arguments. */
84
int r = main(argc, argv);
85
0 commit comments