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: RFC: binutils PATCH: Set e_type to ET_EXEC for -pie -Ttext-segment=0xXXX


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.


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