aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2024-02-17 01:03:50 +0100
committerRon Evans <[email protected]>2024-02-17 10:18:00 +0100
commit36d60b8349c7c29c6aab42dbff63793025af628c (patch)
treeccc334fda3014dca97381ab83759d6e55991b071
parentc55191283b1371630873f730e17e0284989bd4b8 (diff)
downloadtinygo-36d60b8349c7c29c6aab42dbff63793025af628c.tar.gz
tinygo-36d60b8349c7c29c6aab42dbff63793025af628c.zip
targets/wasm_unknown: remove _start to _initialize to match WASI
Signed-off-by: deadprogram <[email protected]>
-rw-r--r--src/runtime/runtime_wasm_unknown.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/runtime_wasm_unknown.go b/src/runtime/runtime_wasm_unknown.go
index 2d1ef9cca..111bddf08 100644
--- a/src/runtime/runtime_wasm_unknown.go
+++ b/src/runtime/runtime_wasm_unknown.go
@@ -11,8 +11,8 @@ type timeUnit int64
//export __wasm_call_ctors
func __wasm_call_ctors()
-//export _start
-func _start() {
+//export _initialize
+func _initialize() {
// These need to be initialized early so that the heap can be initialized.
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)