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)
commit748627cc2ad844954034cb2c188ec971482d9380
tree1d31d3c140f1f42a28817bfc70f0f66c331734e5
parent78580792467c9c6698567bc300d78bf0ae9260ce
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.

llvm-svn: 220198
llvm/cmake/modules/AddLLVM.cmake