From 36d60b8349c7c29c6aab42dbff63793025af628c Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 17 Feb 2024 01:03:50 +0100 Subject: targets/wasm_unknown: remove _start to _initialize to match WASI Signed-off-by: deadprogram --- src/runtime/runtime_wasm_unknown.go | 4 ++-- 1 file 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) -- cgit v1.2.3