<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 6, 2015 at 7:02 PM, Ed Maste <span dir="ltr"><<a href="mailto:emaste@freebsd.org" target="_blank">emaste@freebsd.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 6 April 2015 at 21:38, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> wrote:<br>
> On Mon, Apr 6, 2015 at 6:22 PM, Ed Maste <<a href="mailto:emaste@freebsd.org">emaste@freebsd.org</a>> wrote:<br>
>><br>
</span><span class="">>> Good point. Do you think we should go further and either just use<br>
>> DT_RUNPATH when we know the system's rtld supports it, or set both<br>
>> DT_RUNPATH and DT_RPATH in all cases?<br>
>><br>
>> The "broken" DT_RPATH behaviour is as specified in gabi41.pdf, but I'm<br>
>> not sure that anyone really wants that. It seems a bit unfortunate to<br>
>> have the sensible behaviour hidden behind an option.<br>
><br>
</span><span class="">> How about other linkers? If gold and/or GNU LD are going to switch default,<br>
> we should follow them.<br>
<br>
</span>There's been discussion on enabling it by default in gold, but I<br>
suspect it'll be hard to overcome the inertia there. I'm not sure<br>
about GNU ld. Perhaps if we make the change they'll use it to justify<br>
following suit :)<br></blockquote><div><br></div><div>Nice strategy. :) But well, we should stick with what GNU LD or gold do, as it's hard to justify the (minor) incompatibility as a feature, considering our position. Of course we can publicly say that if they switch, we are happy to switch default too.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If the target supports DT_RUNPATH, and the target implements DT_RPATH<br>
as specified in gABI, then I think there's no real use in setting only<br>
DT_RPATH.<br>
<br>
FWIW most of the libraries in /usr/local/lib on my FreeBSD 11 laptop<br>
have both DT_RPATH and DT_RUNPATH, and they are set to the same value.<br>
</blockquote></div><br></div></div>