[PATCH] D108006: [lld][ELF] Add --no-search-static-libs-for-shlib-undefined flag
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 23 19:15:57 PDT 2021
MaskRay added a comment.
To clarify, gold is not the odd one. GNU ld, gold, and ld.lld have the similar behavior. The original description Revert-two-changes-that-break-Android-builds.v6.patch probably made an error connecting the previous LLD behavior with the gold behavior.
Say, b.so depends on a.so. The linker command line is `ld main.o a.a b.so` and a.a defines an undef in b.so.
a.a may be dropped by GNU ld/gold. ld.lld may extract some a.a members but this would be flagged by `--warn-backrefs`.
>From binutils, generic-abi, and your responses, I feel that there is not sufficient argument for having `--no-search-static-libs-for-shlib-undefined`.
It won't be used by others and the option could just cause confusion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108006/new/
https://reviews.llvm.org/D108006
More information about the llvm-commits
mailing list