[PATCH] D109572: [ELF] Add --why-extract= to query why archive members/lazy object files are extracted

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 7 08:57:37 PDT 2021


MaskRay added a comment.

In D109572#3047948 <https://reviews.llvm.org/D109572#3047948>, @thakis wrote:

> (FYI: You likely know this but it's not mention further up: ld64.lld implements ld64's `-why_load` which I think does the same thing.)

(Yes, I checked ld64. I picked `--why-extract=` instead of `--why-load=` because `extract` (instead of `load`) is what Solaris ld and GNU ld's documentation say about archive member extraction.
There are 3 columns instead of 2 so that tracing a chain is easier. `--whole-archive` (`-all_load`) doesn't have dedicated output but it should be fine. Interleaved output of `-why_load` is another issue.)


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