We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3e000 commit c931bc7Copy full SHA for c931bc7
src/runtime/runtime_wasm_wasip2.go
@@ -13,19 +13,11 @@ type timeUnit int64
13
14
//export wasi:cli/[email protected]#run
15
func __wasi_cli_run_run() uint32 {
16
- _start()
17
- return 0
18
-}
19
-
20
-//export _start
21
-func _start() {
22
// These need to be initialized early so that the heap can be initialized.
23
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
24
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
25
run()
26
27
28
-func init() {
+ return 0
29
}
30
31
var args []string
targets/wasip2.json
@@ -17,7 +17,8 @@
],
"ldflags": [
"--stack-first",
- "--no-demangle"
+ "--no-demangle",
+ "--no-entry"
"extra-files": [
"src/runtime/asm_tinygowasm.S"
0 commit comments