[lld] Reading undefined symbols from dynamic objects

Joerg Sonnenberger joerg at britannica.bec.de
Tue Sep 3 12:09:31 PDT 2013


On Tue, Sep 03, 2013 at 12:03:38PM -0700, Nick Kledzik wrote:
> Bigger question.  What is the rule for ELF (and PE/COFF) for weak
> definitions in shared libraries vs object files?

Good question, I have to check. Note that there are two different cases
here:

(1) The weak symbol is defined.
(2) The weak symbol is not defined.

This patch is strictly about the second case. If it is a weak reference,
the result should be different, but I haven't had a chance to build a
test case for that yet and check if the behavior is correct. Will have
to do that soon enough as NetBSD's libc exercise that anyway.

Joerg



More information about the llvm-commits mailing list