[PATCH] Introduce new gold plugin option "relocation-pic"
Alexey Volkov
avolkov.intel at gmail.com
Tue Apr 29 05:04:38 PDT 2014
2014-04-28 20:38 GMT+04:00 Rafael Ávila de Espíndola <
rafael.espindola at gmail.com>:
> Getting close. LGTM with a comment about why we can't use
> isPIEDefault: It would enable PIE only logic, like which TLS model to
> use, when compiling. That actually looks like a bug in the driver, but
> can be fixed in another commit.
>
I don't understand how it could be fixed.
When compiler generates object it has no information regarding further
usage of object: executable or library.
Function isPIEDefault turns on PIE for every object for specific target.
So it seems to be useful only for targets with no shared libraries.
>
> Cheers,
> Rafael
>
> http://reviews.llvm.org/D2668
>
>
>
http://reviews.llvm.org/D2668
More information about the llvm-commits
mailing list