-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//go:linkname doesn't work for already defined functions #4185
Comments
I'm surprised this works in the Go toolchain. Generally it's not possible to replace a function defined in another package, at least not in TinyGo. Why are you doing this? |
I'm experimenting with some tiny-go GC approaches. Apparently it touches another internal aspects and I prefer not to fork the entire project, but make an extension to it. |
If you want to modify this, you really should modify TinyGo directly. Any other approach will likely lead to issues because TinyGo wasn't designed to be extended like this. |
Ok. Thanks for the information. |
Hello everyone.
I have a small test code
go run main.go
works as expected: it panics~/tinygo/tinygo-v0.31.2/bin/tinygo build -target wasm -o test.wasm test.go
node wasm_exec.js test.wasm
this doesn't panic.
Is there a way to make this linkname directive working?
The text was updated successfully, but these errors were encountered: