about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/mod.rs
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-08-07 17:04:32 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-08-16 18:28:18 +0200
commit7c015648dd78a329920060125378eb52762a728f (patch)
treee7ec3ef94f4f8b328fb4dc0f37b1be38cff10c22 /compiler/rustc_mir/src/transform/coverage/mod.rs
parent154c8408e9f9d90d82aa3060ed13732c955f0c53 (diff)
downloadrust-7c015648dd78a329920060125378eb52762a728f.tar.gz
rust-7c015648dd78a329920060125378eb52762a728f.zip
Use llvm.compiler.used insetad of llvm.used
The #[used] attribute explicitly only requires symbols to be
retained in object files, but allows the linker to drop them
if dead. This corresponds to llvm.compiler.used semantics.

The motivation to change this *now* is that https://reviews.llvm.org/D97448
starts emitting #[used] symbols into unique sections with
SHF_GNU_RETAIN flag. This triggers a bug in some version of gold,
resulting in the ARGV_INIT_ARRAY symbol part of the .init_array
section to be incorrectly placed.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions