1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/Instrumentation
Evgeniy Stepanov d4e5a604bd [asan] Fix dead stripping of globals on Linux.
Use a combination of !associated, comdat, @llvm.compiler.used and
custom sections to allow dead stripping of globals and their asan
metadata. Sometimes.

Currently this works on LLD, which supports SHF_LINK_ORDER with
sh_link pointing to the associated section.

This also works on BFD, which seems to treat comdats as
all-or-nothing with respect to linker GC. There is a weird quirk
where the "first" global in each link is never GC-ed because of the
section symbols.

At this moment it does not work on Gold (as in the globals are never
stripped).

Differential Revision: https://reviews.llvm.org/D30121

llvm-svn: 298158
2017-03-17 22:17:29 +00:00
..
AddressSanitizer [asan] Fix dead stripping of globals on Linux. 2017-03-17 22:17:29 +00:00
BoundsChecking
DataFlowSanitizer
EfficiencySanitizer
InstrProfiling Resubmit r297897: [PGO] Value profile for size of memory intrinsic calls 2017-03-16 21:15:48 +00:00
MemorySanitizer [msan] Handle x86_sse_stmxcsr and x86_sse_ldmxcsr. 2017-03-03 01:12:43 +00:00
SanitizerCoverage [sancov] using comdat only when it is enabled 2017-02-08 23:12:46 +00:00
ThreadSanitizer ThreadSanitizer: don't track swifterror memory addresses 2017-02-15 18:57:06 +00:00