-
Notifications
You must be signed in to change notification settings - Fork 1
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
__wasm_call_ctors #3
Comments
It's true that My understanding is that we do want to have an official, standard "init" function in WebAssembly (i.e. like FWIW, I'm happy to change to something "more standard" if/when it becomes available, but I don't think that's happened yet. |
the "old, module-based WASI ABI" is what's the most commonly used right now. also, |
Ah, thanks for the link -- I hadn't seen that conversation. I'm fine with changing to |
This allows -mexec-model=reactor -shared produces a library module with _initialize entrypoint, which is preferrable over __wasm_call_ctors. This partially reverts https://reviews.llvm.org/D153293 Discussion: dicej/component-linking-demo#3 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D156205
This allows -mexec-model=reactor -shared produces a library module with _initialize entrypoint, which is preferrable over __wasm_call_ctors. This partially reverts https://reviews.llvm.org/D153293 Discussion: dicej/component-linking-demo#3 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D156205 (cherry picked from commit 989ce06)
This allows -mexec-model=reactor -shared produces a library module with _initialize entrypoint, which is preferrable over __wasm_call_ctors. This partially reverts https://reviews.llvm.org/D153293 Discussion: dicej/component-linking-demo#3 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D156205 (cherry picked from commit 989ce06)
This allows -mexec-model=reactor -shared produces a library module with _initialize entrypoint, which is preferrable over __wasm_call_ctors. This partially reverts https://reviews.llvm.org/D153293 Discussion: dicej/component-linking-demo#3 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D156205 (cherry picked from commit 989ce06)
This allows -mexec-model=reactor -shared produces a library module with _initialize entrypoint, which is preferrable over __wasm_call_ctors. This partially reverts https://reviews.llvm.org/D153293 Discussion: dicej/component-linking-demo#3 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D156205 (cherry picked from commit 989ce06)
libc.so needs
__wasm_call_ctors
to be called. it doesn't seem like a standard.i guess it makes more sense for libc.so exports
_initiailize
as specified for wasi reactor modules.https://github.com/WebAssembly/WASI/blob/main/legacy/application-abi.md
probably by linking crt1-reactor, maybe reverting https://reviews.llvm.org/D153293 partly.
how do you think?
The text was updated successfully, but these errors were encountered: