[ELF] Demote !isUsedInRegularObj lazy symbol
authorFangrui Song <i@maskray.me>
Mon, 11 Oct 2021 16:46:31 +0000 (09:46 -0700)
committerFangrui Song <i@maskray.me>
Mon, 11 Oct 2021 16:46:31 +0000 (09:46 -0700)
commit71ec1e501572ed327c16cb958b93652ea0d74f6f
tree39dfd9bcef595c73eef4d9fd98cb86ccaeee3532
parent3550e242fad672696da361f7ddadf53a41114dfd
[ELF] Demote !isUsedInRegularObj lazy symbol

I think D79300 has fixed the D51892 (`__i686.get_pc_thunk.bx`) issue, so
we can bring back rL330869.
D79300 says `would error undefined symbol instead of the more relevant discarded section`
but it doesn't reproduce now.

This avoids a quirk in `isUndefWeak()`.

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D111365
lld/ELF/Driver.cpp
lld/ELF/Symbols.h
lld/ELF/SyntheticSections.cpp