-
Notifications
You must be signed in to change notification settings - Fork 58
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
Export/import tables #46
Comments
Yep. This is absolutely essential for rich interop between Rust and JS. I also automatically export the table when compiling with |
@alexcrichton do you know if LLD supports/will support this or are going to have to do something else here? |
Heh I don't think there's event fully functional |
Er yes, but that was the support I was testing out which didn't actually work with LLD, it only worked with LLVM. |
Oh that's unfortunate -_- |
LLD recently gained support for specifying what to do about the function table, whether it's imported or exported |
can confirm that it works for me on LLVM 7 |
I did two experiments with wasm runtimes (1, 2) and both of them requires access to tables.
Today, in
wasm32-unknown-unknown
tables are defined inside the wasm but not exported. To workaround this, I have to disassemble wasm, add export for table and then assemble back before I can use the modules (script).So I think, we need a way to communicate to linker that we need either to import or export tables from binary. I understand, this might be not feasible to do with our binaryen 'linking'.
I just want we make sure that this is not problem for upcoming proper linking with LLD.
The text was updated successfully, but these errors were encountered: