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] |
On Tue, Dec 10, 2013 at 5:28 AM, Michael Matz <matz@suse.de> wrote: > 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. > Here is the linker patch with testcases. OK to install? Thanks. H.J. --- bfd/ 2013-12-10 H.J. Lu <hongjiu.lu@intel.com> * elf.c (assign_file_positions_except_relocs): Set e_type in ELF header to ET_EXEC for -pie -Ttext-segment=. ld/testsuite/ 2013-12-10 H.J. Lu <hongjiu.lu@intel.com> * ld-pie/vaddr-0.d: New file. * ld-pie/vaddr-1.d: Likewise. * ld-pie/vaddr.s: Likewise.
Attachment:
0001-Use-ET_EXEC-for-pie-Ttext-segment.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |