[PATCH] Introduce new gold plugin option "relocation-pic"
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Apr 24 06:53:20 PDT 2014
> 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?
Cheers,
Rafael
More information about the llvm-commits
mailing list