mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
targets/wasm_unknown: remove _start to _initialize to match WASI
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -11,8 +11,8 @@ type timeUnit int64
|
|||||||
//export __wasm_call_ctors
|
//export __wasm_call_ctors
|
||||||
func __wasm_call_ctors()
|
func __wasm_call_ctors()
|
||||||
|
|
||||||
//export _start
|
//export _initialize
|
||||||
func _start() {
|
func _initialize() {
|
||||||
// These need to be initialized early so that the heap can be initialized.
|
// These need to be initialized early so that the heap can be initialized.
|
||||||
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
|
heapStart = uintptr(unsafe.Pointer(&heapStartSymbol))
|
||||||
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
|
heapEnd = uintptr(wasm_memory_size(0) * wasmPageSize)
|
||||||
|
|||||||
Reference in New Issue
Block a user