Revert r220174, "Always use -Wl,-gc-sections on our build."
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 20 Oct 2014 12:12:21 +0000 (12:12 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 20 Oct 2014 12:12:21 +0000 (12:12 +0000)
commit7c771b0293990f8485da02debba6ee515064c97a
tree855ba5549863390bc5456975a37e504ef711a6d2
parent19d010b85136b7491bae94df4698305ee0bfffcd
Revert r220174, "Always use -Wl,-gc-sections on our build."

It dropped required functions for plugins with gnu ld 2.20 and 2.21.

  Failing Tests (1):
      LLVM :: Feature/load_module.ll

  Hello: bin/opt: symbol lookup error: lib/LLVMHello.so: undefined symbol: _ZN4llvm11raw_ostream13write_escapedENS_9StringRefEb

  Failing Tests (1):
      Clang :: Frontend/plugins.c

  error: unable to load plugin 'lib/PrintFunctionNames.so': 'lib/PrintFunctionNames.so: undefined symbol: _ZN5clang15PluginASTAction6anchorEv'

I think we should inspect linker's version or behavior to introduce --gc-sections for --export-dynamic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220198 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake