llvm-capstone/lld/test
Bob Haarman 61e8735f17 [lld-link] preserve @llvm.used symbols in LTO
Summary:
We translate @llvm.used to COFF by generating /include directives
in the .drectve section. However, in LTO links, this happens after
directives have already been processed, so the new directives do
not take effect. This change marks @llvm.used symbols as GCRoots
so that they are preserved as intended.

Fixes PR40733.

Reviewers: rnk, pcc, ruiu

Reviewed By: ruiu

Subscribers: mehdi_amini, steven_wu, dexonsmith, dang, llvm-commits

Tags: #llvm

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

llvm-svn: 354410
2019-02-20 00:26:01 +00:00
..
COFF [lld-link] preserve @llvm.used symbols in LTO 2019-02-20 00:26:01 +00:00
darwin
Driver/Inputs
ELF [mips] Fix indentations in the test. NFC 2019-02-19 16:00:07 +00:00
mach-o Make YAML quote forward slashes. 2018-10-12 16:31:20 +00:00
MinGW [MinGW] Hook up the --exclude-all-symbols option 2019-02-19 21:57:49 +00:00
Unit
wasm [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
CMakeLists.txt Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [lld] 2019-01-19 00:09:43 +00:00
lit.cfg.py Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [lld] 2019-01-19 00:09:43 +00:00
lit.site.cfg.py.in Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [lld] 2019-01-19 00:09:43 +00:00