<div dir="ltr">Seems reasonable to me. Thanks!<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 12, 2015 at 1:07 PM Rafael EspĂ­ndola <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The way prelink used to work was<br>
<br>
* The compiler decides if a given section only has relocations that<br>
are know to point to the same DSO. If so, it names it<br>
.data.rel.ro.local<something>.<br>
* The static linker put all of these together.<br>
* The prelinker program assigns addresses to each library and resolves<br>
the local relocations.<br>
<br>
There are many problems with this:<br>
* It is incompatible with address space randomization.<br>
* The information passed by the compiler is redundant. The linker<br>
knows if a given relocation is in the same DSO or not. If could sort<br>
by that if so desired.<br>
* There are newer ways of speeding up DSO (gnu hash for example).<br>
<br>
At this point it looks like the prelinker is an historical curiosity.<br>
For example, fedora has retired it because it failed to build for two<br>
releases (<a href="http://pkgs.fedoraproject.org/cgit/prelink.git/commit/?id=eb43100a8331d91c801ee3dcdb0a0bb9babfdc1f" rel="noreferrer" target="_blank">http://pkgs.fedoraproject.org/cgit/prelink.git/commit/?id=eb43100a8331d91c801ee3dcdb0a0bb9babfdc1f</a>)<br>
<br>
This patch removes support for it. That is, it stops printing the<br>
".local" sections.<br>
<br>
<br>
Cheers,<br>
Rafael<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">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>
</blockquote></div>