Skip to content
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

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

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

Comments

Projects
None yet
4 participants
@jansegre
Copy link

jansegre commented Sep 10, 2014

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

This comment has been minimized.

Copy link
Member

steveklabnik commented Feb 2, 2016

Triage: no change

@pnkfelix

This comment has been minimized.

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

This comment has been minimized.

Copy link
Member

alexcrichton commented Apr 4, 2016

Indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.