-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/ld: A program cannot run when linker flag "-s" is used. #6245
Labels
Comments
Issue #6274 has been merged into this issue. |
Issue #6371 has been merged into this issue. |
yeah, perhaps the best solution is to remove the feature. the runtime needs the symbols for precise stack GC (it needs stack walking), for example. we can remove some info in the symbol table (for example, function name and pc<->line table?), but not the entire symbol table. Labels changed: added priority-later, removed priority-triage. |
I would vote for removing as many bloat as possible. Dňa 12. 9. 2013 5:44 [email protected] wrote / napísal(a): |
Being able to trim down executables is very valuable for me. Regarding the immediate question of what to do with -s, how about something like: (1) Make passing -s a noop right now (2) Update the documentation for -s (3) Add a basic test that fails when -s produces broken binaries, so that we get CI watching over it (4) Revisit safe ways to shrink binaries after 1.2 With a bit of steering in the right direction, I'd be happy to submit a CL for 1-3. At the very least, the docs should get updated. Feedback requested. |
Issue #6411 has been merged into this issue. |
This issue was closed by revision 0d85d54. Status changed to Fixed. |
This was referenced Dec 8, 2014
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by lubos.pintes:
The text was updated successfully, but these errors were encountered: