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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Apr 25 07:32:05 PDT 2014

>> 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

So yes, we should go with the patch that always passes -pie on android I think.


More information about the llvm-commits mailing list