[PATCH] D95727: llvm-shlib: Create object libraries for each component and link against them

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 23:30:49 PDT 2021


MaskRay added a comment.

When Polly is in `LLVM_ENABLE_PROJECTS`, I get this

  ld.lld: error: undefined symbol: getPollyPluginInfo()
  >>> referenced by Extensions.cpp
  >>>               lib/Extensions/CMakeFiles/obj.LLVMExtensions.dir/Extensions.cpp.o:(llvm::details::extensions_anchor())
  >>> referenced by LTOBackend.cpp
  >>>               lib/LTO/CMakeFiles/obj.LLVMLTO.dir/LTOBackend.cpp.o:(llvm::lto::opt(llvm::lto::Config const&, llvm::TargetMachine*, unsigned int, llvm::Module&, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*, std::vector<unsigned char, std::allocator<unsigned char> > const&))

I find that in the linker command line all the `.o` files are linked without `--start-lib`. This means there will be no archive selection. Can this increase the output size?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95727/new/

https://reviews.llvm.org/D95727



More information about the llvm-commits mailing list