lld: do not report undefined weak references in shared libraries
authornaddy <naddy@openbsd.org>
Tue, 28 Dec 2021 21:13:20 +0000 (21:13 +0000)
committernaddy <naddy@openbsd.org>
Tue, 28 Dec 2021 21:13:20 +0000 (21:13 +0000)
commitafd66fcf82d52c61b4e5c455b75f61a094f5fa13
treeb1f7f15e173e9e09077c67953a8ab9c235df4a35
parent17c51bc63ed5ce11b12c43ce9db387a9caf8809b
lld: do not report undefined weak references in shared libraries

https://github.com/llvm/llvm-project/commit/52bfd2c1ccd86ff813ee6df5a6700690acdd912f

This fixes an issue introduced in D101996.

A weak reference in a shared library could be incorrectly reported if
there is another library that has a strong reference to the same symbol.

Differential Revision: https://reviews.llvm.org/D115041

ok patrick@ kettenis@
gnu/llvm/lld/ELF/InputFiles.cpp