This is the mail archive of the
mailing list for the binutils project.
Re: [patch ob] Disallow -pie and -static
"Joseph S. Myers" <email@example.com> writes:
> On Mon, 27 Feb 2012, Ian Lance Taylor wrote:
>> You seem to be speaking at some sort of conceptual level. At the
>> conceptual level, you are correct. It is possible to define some sort
>> of static PIE. But there is no such thing today, and implementing it
>> will require changes to the linker. When it is implemented, we will
>> change the linker such that -pie -static is not an error.
> I'd say the dynamic linker itself is a static PIE. It has PT_DYNAMIC but
> not PT_INTERP and does any relocation needed itself; it can be run
> directly as well as as an interpreter. It is linked with today's linker,
> albeit in a complicated way.
That is true but as far as I know it is not a approach suitable for
general programs, as it requires writing the program in a particular