[PATCH] D109572: [ELF] Add --why-extract to query why an archive member/lazy object file is extracted

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 10 09:53:44 PDT 2021


MaskRay added a comment.

In D109572#2994835 <https://reviews.llvm.org/D109572#2994835>, @pcc wrote:

> I'm not sure this should be considered an alternative to D69607 <https://reviews.llvm.org/D69607>. Maybe it is if you're not using `--gc-sections`, but with that flag we really need something like a breadth-first search like in that patch.

Right, I removed the reference to D69607 <https://reviews.llvm.org/D69607>. I didn't look closely at D69607 <https://reviews.llvm.org/D69607>. Indeed it is about `--gc-sections`. This is for the archive member output in GNU ld `-M`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109572



More information about the llvm-commits mailing list