RFC: binutils PATCH: Set e_type to ET_EXEC for -pie -Ttext-segment=0xXXX

Michael Matz matz@suse.de
Tue Dec 10 13:28:00 GMT 2013


Hi,

On Mon, 9 Dec 2013, H. Peter Anvin wrote:

> Where do the _32 and _32S relocations come from?  Are we mixing multiple 
> things inside -pie?

Without -pie it uses the non-shared (and non-PIE) crt startup files, and 
they expect the (absolute) addresses they care about to fit into 32bit :-/
You need the shared startup files to put the executable above 4G.


Ciao,
Michael.



More information about the Binutils mailing list