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: Support PIE on Solaris 12


"H.J. Lu" <hjl.tools@gmail.com> writes:

>> 2015-09-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>>
>>         ld:
>>         * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
>>
>>         * emultempl/elf32.em: Include ldlex.h.
>>         (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT]
>>         <OPTION_PIE>: Set DF_1_PIE.
>>
>>         include/elf:
>>         * common.h (DF_1_STUB, DF_1_PIE): Define.
>>
>>         binutils:
>>         * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
>>
>
> It breaks the linker.  I checked in this patch to fix it.

Sorry about that.  I'm pretty sure I tried it on both Solaris and
Linux/x86_64.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


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