[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
Tue Jun 15 10:17:40 PDT 2021


MaskRay added a comment.

> In the case where only libLLVM.so is built (i.e. ninja LLVM) this eliminates 150 linker jobs.

Do you mean ar/llvm-ar?

> It does, unless you use -Wl,--gc-sections, that's one of the downsides of using object libraries over archives.

Most non-SHF_ALLOC sections cannot be GCed.

If we want to save the copy/paste work done by ar/llvm-ar, can we use thin archives?


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