-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 automatically links and re-exports all of libc #7133
Comments
I think we need to apply this to the new stage2 code: #2369 |
#2910 ? |
Alternatively, would it make sense to enable build-exe for wasm32-freestanding? It doesn't work right now because it expects main. |
Let's explore this- without diving back into wasm stuff I recall that I was trying to avoid adding the logic from #2369 because it would require maintaining more in-memory data with regards to incremental compilation. |
There is an easier way. From LLD documentation:
In practice, we would need to add this attribute to all exported functions, except when compiling libc and other internal libraries. |
Can someone provide a breakdown of what needs to be done to fix this issue? I'd possibly like to contribute here. Context is I'm writing a compiler, currently in C but would prefer it be with Zig, and wasm is my core target. This is a blocker because file size is extremely important in the browser. |
The text was updated successfully, but these errors were encountered: