This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch ob] Disallow -pie and -static


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.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]