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

Alexey Volkov avolkov.intel at gmail.com
Fri Apr 25 06:25:42 PDT 2014

2014-04-24 17:53 GMT+04:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:

> > Since on Android only PIC code is supported.
> > One reason for this is unsupported COPY relocation on Android.
> If only pic code is supported, then every executable is PIE, no? My
> understanding is that all that -pie does is
> * Complain if code that is not position independent is found.
> * Avoid relaxing PIC code to non PIC.
> 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
Anyway the executable should work regardless of -pie linker option presence.

> Cheers,
> Rafael

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

More information about the llvm-commits mailing list