Files
rust/compiler/rustc_target
Jacob Pratt b1baa4f7b9 Rollup merge of #162546 - heiher:loong64-gnu-lld-nightly, r=chenyukang
Use lld by default on `loongarch64-unknown-linux-gnu` nightly

This PR makes LLD the default linker for `loongarch64-unknown-linux-gnu` on nightly.

As a prerequisite, it aligns the LoongArch64 Linux `LOAD` segment layout of LLD and other GNU-compatible linkers with GNU ld. This keeps the layout consistent and allows Linux to make better use of file-backed PMD mappings.

The LLD default is initially limited to nightly to allow some soak time before rolling it out to beta and stable.

To opt out of using LLD, `RUSTFLAGS="-Clinker-features=-lld"` would be used. To opt out of using rust-lld, falling back to the LLD installed on the system, `RUSTFLAGS="-Clink-self-contained=-linker"` would be used.
2026-09-11 00:03:11 -04:00
..
2026-08-21 10:33:58 +02:00
…

rustc_target contains some very low-level details that are specific to different compilation targets and so forth.

For more information about how rustc works, see the rustc dev guide.