Skip to content

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

Closed
@jansegre

Description

@jansegre

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions