Skip to content

Add a -C no-gc-sections option to rustc #17141

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

Closed
jansegre opened this issue Sep 10, 2014 · 3 comments
Closed

Add a -C no-gc-sections option to rustc #17141

jansegre opened this issue Sep 10, 2014 · 3 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@jansegre
Copy link

I have an issue when static linking to an external library on OS X 64-bit (in my case luajit) that is known to have problems when -dead_strip is passed to the linker due to some code being written in asm. A brief talk in the IRC lead to @cmr suggesting me to open this issue. The name no-gc-sections is for matching the gnu ld --gc-sections nomenclature.

I'm keeping it brief I can give more details if requested.
Edit: PS: I'm manually linking as temporary fix.

@steveklabnik steveklabnik added the A-frontend Area: Compiler frontend (errors, parsing and HIR) label Jan 27, 2015
@steveklabnik steveklabnik added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Feb 2, 2016
@steveklabnik
Copy link
Member

Triage: no change

@pnkfelix
Copy link
Member

pnkfelix commented Apr 4, 2016

-C link-dead-code covers this at this point, I think. At least, the way its implemented is that it causes the compiler to stop including --gc-sections in its linker invocation.

@alexcrichton
Copy link
Member

Indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

4 participants