llvm-project/compiler-rt/lib
Petr Hosek 603d58b5e4 [InstrProfiling] Use !associated metadata for counters, data and values
The !associated metadata may be attached to a global object declaration
with a single argument that references another global object. This
metadata prevents discarding of the global object in linker GC unless
the referenced object is also discarded.

Furthermore, when a function symbol is discarded by the linker, setting
up !associated metadata allows linker to discard counters, data and
values associated with that function symbol. This is not possible today
because there's metadata to guide the linker. This approach is also used
by other instrumentations like sanitizers.

Note that !associated metadata is only supported by ELF, it does not have
any effect on non-ELF targets.

Differential Revision: https://reviews.llvm.org/D76802
2020-06-08 15:07:43 -07:00
..
BlocksRuntime
asan [asan] fix a comment typo 2020-06-01 19:14:56 -07:00
builtins [RISCV-V] Provide muldi3 builtin assembly implementation 2020-06-02 21:04:55 +01:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt [cmake] Strip quotes in compiler-rt/lib/crt; error if checks fail 2020-03-09 15:52:39 -07:00
dfsan [dfsan] Remove realloc from done_abilist.txt 2020-05-05 22:32:45 -07:00
fuzzer [libFuzzer] Fixed description of fuzzer merge control file. 2020-05-29 16:00:26 -07:00
gwp_asan [GWP-ASan] Use functions in backtrace test, not line numbers. 2020-03-26 10:10:24 -07:00
hwasan [hwasan] Disable malloc-fill by default. 2020-06-05 11:27:16 -07:00
interception Fix check-interception link error in compiler-rt debug mode 2019-10-10 23:30:54 +00:00
lsan add debug code to chase down a rare crash in asan/lsan https://github.com/google/sanitizers/issues/1193 2020-06-01 19:14:56 -07:00
msan Fix strict aliasing warning in msan.cpp 2020-06-01 07:42:10 +02:00
profile [InstrProfiling] Use !associated metadata for counters, data and values 2020-06-08 15:07:43 -07:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common Make linter happy 2020-06-04 15:14:48 -07:00
scudo [scudo] Fix deadlock in ScudoWrappersCTest.DisableForkEnable test. 2020-05-28 14:31:33 -07:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [TSan] Revert removal of ignore_interceptors_accesses flag 2020-06-08 12:35:43 -07:00
ubsan [compile-rt] Reduce #ifdef noise for ptrauth 2020-05-11 09:47:21 -07:00
ubsan_minimal compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
xray [xray] Preserve x8 in trampoline on AArch64 2020-04-27 14:57:26 -04:00
CMakeLists.txt scudo: Add support for diagnosing memory errors when memory tagging is enabled. 2020-04-17 17:26:30 -07:00