mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
wasi: restore support for -scheduler=none
The assembly symbols were not marked as hidden and so were exported,
leading to unreferenced symbols.
Example error message:
Error: failed to run main module `/tmp/tinygo3961039405/main`
Caused by:
0: failed to instantiate "/tmp/tinygo3961039405/main"
1: unknown import: `asyncify::stop_rewind` has not been defined
This commit fixes this issue.
This commit is contained in:
committed by
Ron Evans
parent
7cb44fb373
commit
2f4f3bd1ba
@@ -1,6 +1,7 @@
|
||||
.globaltype __stack_pointer, i32
|
||||
|
||||
.global tinygo_unwind
|
||||
.hidden tinygo_unwind
|
||||
.type tinygo_unwind,@function
|
||||
tinygo_unwind: // func (state *stackState) unwind()
|
||||
.functype tinygo_unwind (i32) -> ()
|
||||
@@ -27,6 +28,7 @@ tinygo_unwind: // func (state *stackState) unwind()
|
||||
end_function
|
||||
|
||||
.global tinygo_launch
|
||||
.hidden tinygo_launch
|
||||
.type tinygo_launch,@function
|
||||
tinygo_launch: // func (state *state) launch()
|
||||
.functype tinygo_launch (i32) -> ()
|
||||
@@ -50,6 +52,7 @@ tinygo_launch: // func (state *state) launch()
|
||||
end_function
|
||||
|
||||
.global tinygo_rewind
|
||||
.hidden tinygo_rewind
|
||||
.type tinygo_rewind,@function
|
||||
tinygo_rewind: // func (state *state) rewind()
|
||||
.functype tinygo_rewind (i32) -> ()
|
||||
|
||||
Reference in New Issue
Block a user