[PATCH] Introduce new gold plugin option "relocation-pic"

Alexey Volkov avolkov.intel at gmail.com
Mon Apr 28 06:49:48 PDT 2014


2014-04-25 18:32 GMT+04:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:

> >> Given that the current setup works, it looks like the android linker
> >> has no PIC->non PIC relaxations. In other words, passing -pie should
> >> be a nop and we should always do it.
> >>
> >> Do you see any other difference in the produced binaries when passing
> >> -pie?
> >
> > Also with -pie linker will not create PLT section that is useless for
> > executable.
> > Anyway the executable should work regardless of -pie linker option
> presence.
>
> That is a difference between a .so and an executable, right? It seems
> strange to skip PLTs for a pie executable but not for a non-pie
> executable.
>
> So yes, we should go with the patch that always passes -pie on android I
> think.
>
Do you mean that I can proceed with my current patch and commit it?
With current patch -pie will be passed to linker regardless of LTO.

>
> Cheers,
> Rafael
>



-- 
Alexey Volkov
Intel Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140428/843056e7/attachment.html>


More information about the llvm-commits mailing list