This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support PIE on Solaris 12
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Alan Modra <amodra at gmail dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 10 Sep 2015 13:40:15 +0200
- Subject: Re: Support PIE on Solaris 12
- Authentication-results: sourceware.org; auth=none
- References: <yddd1yb7fgm dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOr8Y059NZ2D2uP2TLwyipzBrWDrNRtTDP7eqnYZKQdi7A at mail dot gmail dot com> <ydd1teijqjb dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOrHK7vmy43j4+eoFjB4e_N89f_3oZXGTTAdGoLTOomTgA at mail dot gmail dot com> <ydd4mjdgpho dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <20150902125127 dot GV24814 at bubble dot grove dot modra dot org>
Alan Modra <amodra@gmail.com> writes:
> On Wed, Sep 02, 2015 at 11:05:55AM +0200, Rainer Orth wrote:
>> 2015-08-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>>
>> ld:
>> * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes.
>>
>> * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Allow
>> overriding gld${EMULATION_NAME}_handle_option.
>> * emultempl/solaris2.em: Include ldlex.h.
>> (gld${EMULATION_NAME}_handle_option): Declare.
>> (elf_solaris2_handle_option): New function.
>> (LDEMUL_HANDLE_OPTION): Uset it.
>>
>> include/elf:
>> * common.h (DF_1_STUB, DF_1_PIE): Define.
>>
>> binutils:
>> * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
>
> OK.
How should we proceed with this patch? Keep setting DF_1_PIE
Solaris-specific as in the version above you've already approved or set
it everywhere as HJ suggested, using the ld part from
https://sourceware.org/ml/binutils/2015-09/msg00035.html
instead.
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University