Skip to content

Conversation

@dicej
Copy link
Collaborator

@dicej dicej commented Oct 3, 2023

Per WebAssembly/tool-conventions#203 and recent LLVM and wasi-libc changes, libraries may export an _initialize function instead of __wasm_call_ctors, and we should call whichever one we find. Note that we expect to find at most one of the two, and will return an error if both are found.

Per WebAssembly/tool-conventions#203 and recent LLVM and wasi-libc changes, libraries may export an `_initialize` function instead of `__wasm_call_ctors`, and we should call whichever one we find. Note that we expect to find at most one of the two, and will return an error if both are found. Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej requested a review from alexcrichton October 3, 2023 20:04
@alexcrichton alexcrichton merged commit 60785ca into bytecodealliance:main Oct 3, 2023
@dicej dicej deleted the call_initialize branch October 4, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants