[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 03:24:48 PST 2022
bd1976llvm added a comment.
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).
We have had a similar behaviour on PlayStation in our proprietary linker for many years without any reported problems. Given that, I think that we could enable this behaviour by default and add a command line option to revert to the current behaviour (--emulate-gnu-ld) to handle corner cases.
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