about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-05-09 20:37:06 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-06-05 11:35:15 +0000
commitf8e9778eb12573eabac183f5d617e1a7404505c7 (patch)
tree232141a227612b9c17496cad84c30fb31c6935d7 /compiler/rustc_codegen_gcc
parent95a2212587f1b8500af1ac630322b0cb2e030c61 (diff)
downloadrust-f8e9778eb12573eabac183f5d617e1a7404505c7.tar.gz
rust-f8e9778eb12573eabac183f5d617e1a7404505c7.zip
Make #[used(linker)] the default on ELF too
#[used] currently is an alias for #[used(linker)] on all platforms
except ELF based ones where it is an alias for #[used(compiler)]. The
latter has surprising behavior and the LLVM LangRef explicitly states
that it "should only be used in rare circumstances, and should not be
exposed to source languages."

The reason #[used] still was an alias to #[used(compiler)] on ELF is
because the gold linker has issues with it. Luckily gold has been
deprecated with GCC 15 and seems to be unable to bootstrap rustc anyway.
As such we shouldn't really care about supporting gold.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions