-
-
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
Unreachable errors' strings included in binary #13111
Comments
About the backend-llvm label, doesn't it affect the in-house backends and output formats too?
All the backends seem to scan all decls and keep all of them instead of keeping only the referenced one. Or Wasm...
Seems like some pretty fundamental issue. |
That is #6256 |
Would be pretty sad. |
This seems to be fixed. Bloat seems to have gone down.
There are still other undesired strings included but that is more or less tracked by #22270 |
Zig Version
0.10.0-dev.4247+3234e8de3
Steps to Reproduce
Expected Behavior
No error strings are found in the binary.
Actual Behavior
A bunch of error strings are included in the binary, including some other strings:
It could very well be that I'm just reporting some issue that is very well known or a duplicate and it's still being worked on, but I'm just opening this to be sure.
stage1 does it better:
It still includes "Linker: LLD 15.0.0" which ultimately is something that should go away as well, but it's a lot better than stage2 still. Probably if we use our own linker we can fix that. Maybe it's illegal to strip it if we use LLD.
The text was updated successfully, but these errors were encountered: