This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: binutils PATCH: Set e_type to ET_EXEC for -pie -Ttext-segment=
- From: "H. Peter Anvin" <hpa at zytor dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>, Jiri Kosina <jkosina at suse dot cz>, LKML <linux-kernel at vger dot kernel dot org>, Josh Boyer <jwboyer at redhat dot com>
- Date: Tue, 10 Dec 2013 11:26:13 -0800
- Subject: Re: RFC: binutils PATCH: Set e_type to ET_EXEC for -pie -Ttext-segment=
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOrKGSxr9X5txGq2Js0vGwXdwxPT+ip70-YZs-Wz-aPgQg at mail dot gmail dot com> <52A766A4 dot 7040202 at zytor dot com> <CAMe9rOoU51t9KUYEYFCVZVwDLTuGWyd9_d97-pcsFrT_WcYS0w at mail dot gmail dot com>
On 12/10/2013 11:15 AM, H.J. Lu wrote:
>>
>> Either way, if the *only* goal is to get the file above a certain point,
>> like 4 GiB, then there is no reason not to randomize upward.
>
> I agree that kernel should load ET_DYN binary anywhere. I will
> change linker to set type to ET_EXEC if p_vaddr != 0.
>
I didn't say "anywhere". I said "at or above the p_vaddr".
-hpa