<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-25 18:32 GMT+04:00 Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">>> Given that the current setup works, it looks like the android linker<br>
>> has no PIC->non PIC relaxations. In other words, passing -pie should<br>
>> be a nop and we should always do it.<br>
>><br>
>> Do you see any other difference in the produced binaries when passing<br>
>> -pie?<br>
><br>
> Also with -pie linker will not create PLT section that is useless for<br>
> executable.<br>
> Anyway the executable should work regardless of -pie linker option presence.<br>
<br>
</div>That is a difference between a .so and an executable, right? It seems<br>
strange to skip PLTs for a pie executable but not for a non-pie<br>
executable.<br>
<br>
So yes, we should go with the patch that always passes -pie on android I think.<br></blockquote><div>Do you mean that I can proceed with my current patch and commit it?</div><div>With current patch -pie will be passed to linker regardless of LTO.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Volkov<div>Intel Corporation</div></div>
</div></div>