Support PIE on Solaris 12

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Tue Sep 22 13:15:00 GMT 2015


"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



More information about the Binutils mailing list