Skip to content

-Csave-temps does not retain linker scripts #62877

@nagisa

Description

@nagisa

Rust uses a linker script with gcc linker flavour, adding a flag like this:

-Wl,--version-script=/run/user/1000/rustcXt0Huw/list

However this file is not preserved even when -Csave-temps is specified, making it impossible to really debug linkage issues outside of rustc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions