<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Mar 20, 2016 at 1:52 AM, Joerg Sonnenberger via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Mar 19, 2016 at 10:16:31AM +0000, Rui Ueyama via llvm-commits wrote:<br>
> I agree with your argument that we should ignore that option. gold<br>
> completely ignores that option, and the GNU ld's behavior to try to<br>
> resolve undefined symbols in all shared object files at (static-)link time seems broken to me.<br>
<br>
</span>Actually, it is gold that is broken in this regard. Resolving undefined<br>
symbols recursively is needed for correct ELF operation, it is just that<br>
the GNU folks decided that once again that screwing with ELF is good.<br>
The requirement to explicitly link against all libraries you import from<br>
is stupid from the ELF perspective, both spec and implementation, as it<br>
just slows things down. It also breaks valid use cases for hiding<br>
implementation details...<br></blockquote><div><br></div><div>So we do not try to resolve any undefined symbols in any .so file, and therefore -rpath-link option does not make sense for us.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
Joerg<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>