forked from OSchip/llvm-project
e1bf1365d7
The MSVC linker doesn't like archive files containing non-native object files. When we are doing an LTO build, we may create archive files containing both LLVM bitcode files and native object files. For example, if a project contains assembly files and C++ files, we create native object files for the assembly files and LLVM bitcode files for the C++ files. With the /msvclto option, LLD passes archive files to the MSVC linker. Previously, we didn't pass archive files if they contain at least one bitcode files. That wasn't correct because the native object files that weren't passed to the MSVC linker may be needed to complete linking. In this patch, we create new temporary archive files to strip bitcode files. Differential Revision: https://reviews.llvm.org/D31053 llvm-svn: 297997 |
||
---|---|---|
.. | ||
COFF | ||
ELF | ||
cmake/modules | ||
docs | ||
include/lld | ||
lib | ||
test | ||
tools/lld | ||
unittests | ||
.arcconfig | ||
.clang-format | ||
.gitignore | ||
CMakeLists.txt | ||
CODE_OWNERS.TXT | ||
LICENSE.TXT | ||
README.md |
README.md
LLVM Linker (lld)
This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.
lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.