llvm/test
Evgeniy Stepanov 7bfedca6fc [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).

This is a re-land of r298158 rebased on D31358. This time,
asan.module_ctor is put in a comdat as well to avoid quadratic
behavior in Gold.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299697 91177308-0d34-0410-b5e6-96231b3b80d8
2017-04-06 19:55:17 +00:00
..
Analysis [ScalarEvolution] Re-enable Predicate implication from operations 2017-03-31 12:05:30 +00:00
Assembler
Bindings
Bitcode Bitcode: Do not create FNENTRYs for aliases of functions. 2017-04-06 19:39:24 +00:00
BugPoint
CodeGen Revert "[ARM] Add Kryo to available targets" 2017-04-06 19:16:14 +00:00
DebugInfo Improve DebugInfo/strip-loop-metadata.ll test 2017-03-31 17:51:12 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [asan] Fix dead stripping of globals on Linux. 2017-04-06 19:55:17 +00:00
Integer
JitListener
LibDriver
Linker
LTO
MC [AMDGPU][MC] Fix for Bug 28158 + LIT tests 2017-04-05 17:26:45 +00:00
Object [llvm-ar] errors go on stderr and not on stdout. 2017-04-05 14:52:17 +00:00
ObjectYAML Align all scalar numbers to LLVM_YAML_IS_FLOW_SEQUENCE_VECTOR 2017-04-04 06:02:32 +00:00
Other
SymbolRewriter
TableGen [globalisel][tablegen] Fix patterns involving multiple ComplexPatterns. 2017-04-05 13:14:03 +00:00
ThinLTO/X86
tools [yaml2obj] Improve error message when output file cannot be opened. 2017-04-05 14:44:00 +00:00
Transforms [StripDeadDebugInfo] Drop dead CUs entirely 2017-04-06 19:26:22 +00:00
Unit
Verifier Verifier: Check some amdgpu calling convention restrictions 2017-04-04 18:43:11 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh