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: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Alan Modra <amodra at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Tue, 22 Sep 2015 15:15:49 +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> <yddtwr2cxk0 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOrbYEoJS693SciwZsgk3SGbSnPSb-CowD+MeO2Dq-uh3A at mail dot gmail dot com> <yddvbb36g26 dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOpK-rbNQRnvar-QT-PE5OQmFF+G_ymRTr0aSbNO89wx9Q at mail dot gmail dot com> <yddmvwe6bsx dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <CAMe9rOpUXOmvZKjLRoWCX+Cq_WRpD26jfLwf+sHqz2mW2rfdsA at mail dot gmail dot com>
"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