<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 25, 2014 at 9:40 AM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> Agreed here. Even if the expected behavior is different than what gnu<br>
> ld does. As long as it doesn't break lots of things, we should do<br>
> what's intended.<br>
><br>
> As for this specific case, I have no idea what the correct behavior is.<br>
<br>
</div>Correct is indeed a fuzzy concept in ELF :-(<br>
<br>
What is done by gold?<br></blockquote><div><br></div><div>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. Oops.</div>


<div><br></div><div>Comparing the approaches of GNU LD and gold, gold's approach is better for performance.</div><div><br></div><div>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.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>