Go to file
NAKAMURA Takumi c8abc4c201 [CMake] Let llvm-shlib work on Linux with --whole-archive.
FIXME: It should work on not only Linux but elf-targeting gnu ld.

For example if LLVM_DYLIB_COMPONENTS is "BitWriter Support", CMake emits the command line like;

  -Wl,--whole-archive
    lib/libLLVMBitWriter.a
    lib/libLLVMSupport.a *1
  -Wl,--no-whole-archive
  lib/libLLVMCore.a
  lib/libLLVMSupport.a   *2
  -lrt -ldl -ltinfo -lpthread -lm

It works since symbols in LLVMCore is resolved with not *2 but *1.

Unfortunately, --gc-sections is not powerful in this case to prune unused "visibility(default)" entries.

I am still experimenting other way not to rely on --whole-archive.

llvm-svn: 221591
2014-11-10 15:04:02 +00:00
clang Missing testcase from r221581. 2014-11-08 17:09:50 +00:00
clang-tools-extra [clang-tidy] google-readability-function: skip std::nullptr_t 2014-11-05 11:08:39 +00:00
compiler-rt [ASan] Fix stack-overflow test for PowerPC 2014-11-08 09:51:45 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Prune CRLF. 2014-10-27 12:37:26 +00:00
libcxx Fix rvalue bug in __has_operator_addressof 2014-11-05 21:20:10 +00:00
libcxxabi Make sure only NEON enabled devices save/restore D16+ registers 2014-11-07 16:33:58 +00:00
lld [Gnu] Support --image-base option 2014-11-10 14:55:21 +00:00
lldb Add a RegisterNumber class to RegisterContextLLDB.h and start using 2014-11-08 08:09:22 +00:00
llvm [CMake] Let llvm-shlib work on Linux with --whole-archive. 2014-11-10 15:04:02 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Safely generate new loop metadata node 2014-11-07 21:44:18 +00:00