<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 7, 2014 at 1:13 PM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 4/7/2014 2:53 PM, Shankar Easwaran wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 4/7/2014 2:27 PM, Joerg Sonnenberger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(2) Undefined symbols in shared libraries pulled in via -l are ignored.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
By "ignored", I'd think you mean "undefined symbol from library is not<br>
fatal", right?<br>
</blockquote>
No, I really meant ignored. The most you can or should do about them is<br>
check for consistency of the type. Otherwise they are completely<br>
irrelevant. Trying to resolve them is just going to waste time.<br>
</blockquote>
The undefined symbol from a shared library may most likely pull in a defined symbol from an archive library which comes later in the link line and the executable may end up exporting it.<br>
<br>
I am not sure what you meant by ignored ?<br>
</blockquote>
<br></div>
Given these oddities of choosing whether we want undefined symbols from shared libraries to be picked up/not, its better that lld have a flag like what it does right now.<br>
<br>
With this undefined symbols would only be picked up for symbol resolution, if --use-shlib-undefines would be set. This would be different from Gnu but I think its better to be different.<br></blockquote><div><br></div><div>

I wouldn't think that's a good strategy. What we should do is to figure out what the expected behavior is, and implement the correct behavior. Implementing one thing in a variety of ways because we don't know which one is correct does not sounds like a right approach.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bigcheese/Joerg ?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
Shankar Easwaran</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</div></div></blockquote></div><br></div></div>