[patch ob] Disallow -pie and -static

Ian Lance Taylor iant@google.com
Mon Feb 27 17:41:00 GMT 2012


Mike Frysinger <vapier@gentoo.org> writes:

> On Tuesday 14 February 2012 19:48:43 Cary Coutant wrote:
>> I'm committing this patch under the trivial and obvious rule. If -pie
>> and -static are both given together, gold will currently issue an
>> internal error.
>
> shouldn't there be a bug to fix this then ?  there's no technical reason for 
> disallowing static pie's from the perspective of the linker ...

On GNU/Linux a PIE is just an executable shared library.  How would you
implement a statically linked PIE?

Ian



More information about the Binutils mailing list