[lld] r234378 - Allow undefined symbols in shared library by default.
Joerg Sonnenberger
joerg at britannica.bec.de
Wed Apr 8 02:58:34 PDT 2015
On Wed, Apr 08, 2015 at 01:00:19AM -0000, Davide Italiano wrote:
> Author: davide
> Date: Tue Apr 7 20:00:19 2015
> New Revision: 234378
>
> URL: http://llvm.org/viewvc/llvm-project?rev=234378&view=rev
> Log:
> Allow undefined symbols in shared library by default.
Are you sure this is correct? There are two different cases here:
(1) The undefined symbol is in a dependency. While it is sometimes nice
to see a warning, it should not be an error. GNU ld gets this wrong.
(2) The undefined symbol is defined in a dependency. I think we get this
wrong right now for indirect dependencies, e.g. we link against libfoo,
which links against libbar and the symbol is defined by libbar. We
certainly *do* want to complain by default here.
Joerg
More information about the llvm-commits
mailing list