[PATCH] [ELF] Fix undefined symbol handling in DSO.

Rui Ueyama ruiu at google.com
Fri Apr 25 14:13:33 PDT 2014

On Fri, Apr 25, 2014 at 9:40 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> > Agreed here. Even if the expected behavior is different than what gnu
> > ld does. As long as it doesn't break lots of things, we should do
> > what's intended.
> >
> > As for this specific case, I have no idea what the correct behavior is.
> Correct is indeed a fuzzy concept in ELF :-(
> What is done by gold?

Good point. I tried that and found that gold does *not* seem to try to
resolve undefined symbols in DSOs. So my patch would make LLD more in line
with GNU LD but that is something that gold does not really care about.

Comparing the approaches of GNU LD and gold, gold's approach is better for

I'm now thinking to rework this patch to make it in line with gold, rather
than GNU LD. That's probably what we should do.

> Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140425/a146998e/attachment.html>

More information about the llvm-commits mailing list