Add compiler option to strip symbols from generated binaries #71757
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-linkage
Area: linking into static, shared libraries and binaries
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
There's a long standing Cargo issue, requesting the ability to strip symbols from built Rust binaries.
@alexcrichton suggested here that
I'm opening this issue to discuss adding such a
-C strip
flag and to track its implementation in the compiler.Right now, it could be a simple boolean flag, which passes an additional option to the linker (since, AFAIK, most linkers have some sort of flag for stripping symbols from the final binaries).
The text was updated successfully, but these errors were encountered: