Skip to content

Option to disable -nodefaultlibs to the linker #54237

Closed
@alexcrichton

Description

@alexcrichton

Currently the compiler unconditionally passes -nodefaultlibs (or the platform equivalent) to the linker. Unfortunately though this actually causes linking to fail in some circumstances. Some investigation has shown that when compiled with -fsanitize=address this has been seen to cause problems and cause link errors.

While there may be more bugs to fix here on various sides, we should have an option to disable passing this flag!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binaries

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions