Add a -C no-gc-sections
option to rustc
#17141
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
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 nameno-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.
The text was updated successfully, but these errors were encountered: