[PATCH] D117284: [ELF] Allow non-bitcode archive with an empty index

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 05:52:44 PST 2022


bd1976llvm added a comment.

In D117284#3243370 <https://reviews.llvm.org/D117284#3243370>, @sbc100 wrote:

> In D117284#3243218 <https://reviews.llvm.org/D117284#3243218>, @bd1976llvm wrote:
>
>> Another advantage is that this behaviour allows users to "repair" archives with incomplete symbol tables by stripping the symbol table (maybe someone has added both ET_RELs and bitcode objects to the same archive with an ar which ignored the bitcocde symbols).
>
> Isn't it already trivial to "repair" such libraries by running `ranlib` on them?

True. This has proved useful in the past in my world of proprietary toolchains - but in opensource if you have access to LLD then you also also have access to a ranlib that is aware of all the same file formats that LLD supports.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117284



More information about the llvm-commits mailing list