llvm-project/compiler-rt/test
Fangrui Song 04c3040f41 [InstrProfiling] Place __llvm_prf_vnodes and __llvm_prf_names in llvm.used on ELF
`__llvm_prf_vnodes` and `__llvm_prf_names` are used by runtime but not
referenced via relocation in the translation unit.

With `-z start-stop-gc` (D96914 https://sourceware.org/bugzilla/show_bug.cgi?id=27451),
the linker no longer lets `__start_/__stop_` references retain them.

Place `__llvm_prf_vnodes` and `__llvm_prf_names` in `llvm.used` to make
them retained by the linker.

This patch changes most existing `UsedVars` cases to `CompilerUsedVars`
to reflect the ideal state - if the binary format properly supports
section based GC (dead stripping), `llvm.compiler.used` should be sufficient.

`__llvm_prf_vnodes` and `__llvm_prf_names` are switched to `UsedVars`
since we want them to be unconditionally retained by both compiler and linker.

Behaviors on other COFF/Mach-O are not affected.

Differential Revision: https://reviews.llvm.org/D97649
2021-03-01 13:43:23 -08:00
..
BlocksRuntime Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
asan [darwin][asan] add test for application specific information in crash logs 2021-02-23 09:22:11 -08:00
builtins Reland "[builtins] Define fmax and scalbn inline" 2021-02-26 16:20:14 -08:00
cfi [android] Fix some tests for AOSP-master devices. 2021-01-05 12:54:09 -08:00
crt These compiler-rt tests should be UNSUPPORTED instead of XFAIL. 2020-10-23 20:57:18 +04:00
dfsan [dfsan] Do not test origin-tracking in atomic.cpp 2021-02-26 19:44:18 +00:00
fuzzer [Fuzzer][Test] Use %python substitution for trace-malloc-unbalanced.test 2021-02-17 15:00:46 +00:00
gwp_asan [GWP-ASan] Split the unwinder into segv/non-segv. 2020-07-21 08:25:37 -07:00
hwasan Hwasan InitPrctl check for error using internal_iserror 2021-02-19 16:30:56 +00:00
interception [compiler-rt] Rename lit.*.cfg.* -> lit.*.cfg.py.* 2019-06-27 20:56:04 +00:00
lsan [sanitizer] [arm] Disable some LSAN tests for arm-linux-gnueabihf 2021-02-15 09:35:02 -03:00
memprof [NFC,memprof] Update test after D96319 2021-02-11 16:36:16 -08:00
msan [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
profile [InstrProfiling] Place __llvm_prf_vnodes and __llvm_prf_names in llvm.used on ELF 2021-03-01 13:43:23 -08:00
safestack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
sanitizer_common [darwin][asan] add test for application specific information in crash logs 2021-02-23 09:22:11 -08:00
scudo [scudo][standalone] Restore GWP-ASan flag parsing 2021-01-27 12:35:34 -08:00
shadowcallstack compiler-rt: Remove .cc from all lit config files 2019-08-05 19:25:35 +00:00
tsan tsan: fix mmap_lots test 2021-02-17 19:03:17 +01:00
ubsan [Sanitizer] Fix sanitizer tests without reducing optimization levels 2021-02-11 15:22:20 -08:00
ubsan_minimal [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
xray Fix xray fdr mode to allow multiple flushes 2021-02-10 12:57:24 +11:00
.clang-format [compiler-rt] Use "ColumnLimit: 0" instead of "clang-format off" in tests 2018-12-01 01:24:29 +00:00
.clang-tidy [NFC][compiler-rt] Refine .clang-tidy checks 2020-09-05 15:42:15 -07:00
CMakeLists.txt [InstrProfiling] Use ELF section groups for counters, data and values 2021-02-22 14:00:02 -08:00
lit.common.cfg.py [darwin][asan] add test for application specific information in crash logs 2021-02-23 09:22:11 -08:00
lit.common.configured.in [sanitizer] Fix Android API level parsing on arm 2020-11-14 01:54:45 -08:00