targets/wasm_unknown: remove _start to _initialize to match WASI
Signed-off-by: deadprogram <ron@hybridgroup.com>
Этот коммит содержится в:
родитель
c55191283b
коммит
36d60b8349
1 изменённых файлов: 2 добавлений и 2 удалений
|
@ -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)
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче