mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
wasip2: do not export the _start function
It seems to have been replaced with the Component Model `run` function.
This commit is contained in:
committed by
Ron Evans
parent
1f3e0004a9
commit
c931bc7394
@@ -13,19 +13,11 @@ type timeUnit int64
|
|||||||
|
|
||||||
//export wasi:cli/run@0.2.0#run
|
//export wasi:cli/run@0.2.0#run
|
||||||
func __wasi_cli_run_run() uint32 {
|
func __wasi_cli_run_run() uint32 {
|
||||||
_start()
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
//export _start
|
|
||||||
func _start() {
|
|
||||||
// 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)
|
||||||
run()
|
run()
|
||||||
}
|
return 0
|
||||||
|
|
||||||
func init() {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var args []string
|
var args []string
|
||||||
|
|||||||
+2
-1
@@ -17,7 +17,8 @@
|
|||||||
],
|
],
|
||||||
"ldflags": [
|
"ldflags": [
|
||||||
"--stack-first",
|
"--stack-first",
|
||||||
"--no-demangle"
|
"--no-demangle",
|
||||||
|
"--no-entry"
|
||||||
],
|
],
|
||||||
"extra-files": [
|
"extra-files": [
|
||||||
"src/runtime/asm_tinygowasm.S"
|
"src/runtime/asm_tinygowasm.S"
|
||||||
|
|||||||
Reference in New Issue
Block a user