Skip to content

Using lld as our linker #2317

Open
Open
@TeofilC

Description

@TeofilC

I think we might already support lld in configurations where we use GHC with LLVM. But it would be good to have the option to use lld as our linker with the standard GCC based toolchain.

We have a flag called useLdGold. I propose we also add a useLdLld flag that enables lld instead.

Note as well that since gold is getting deprecated and removed from binutils, it might make sense to switch to lld as a standard faster than bfd linker. See: https://gitlab.haskell.org/ghc/ghc/-/issues/25716

I have a draft branch that does this (which I will upload soon), but I'd appreciate ideas about the interface for this, and when we want to enable lld by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions