-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
__ATINIT__ defined in JS #5841
Comments
A wasm module might be able to use the wasm Otherwise, if you need a more C-like environment, there currently isn't a way to do that - there is |
Any general solution needs to be contained within the wasm module itself. If there's a common method that's the same for all emscripten-generated modules (such as the start you mention), that would be fine. Having to guess arbitrary entries to add from the js side is what I need to avoid. Or if there is a way to guess which atinits to add, that would work, too, I guess. |
Yeah, if In a dynamic linking context, you can use |
Is it possible to modify emscripten to put the atinit registrations there, then? Any pointers if I or others would have a chance to contribute in the regard? I can't make promises, but I might be interested, if it seems doable, and if you'd be willing to take a contribution in this regard. |
Overall, a lot of this is up in the air, see e.g. WebAssembly/tool-conventions#25 for a discussion. Sorry this isn't in clearer shape yet. |
Thanks for the feedback and the link. That's interesting reading. |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Would it be possible to have
__ATINIT__
entries added by wasm modules themselves in some fashion?I'm trying to make a common js environment for somewhat arbitrary wasm modules, and this is one of the compatibility problems I've found.
The text was updated successfully, but these errors were encountered: