Re: RFC: binutils PATCH: Set e_type to ET_EXEC for -pie -Ttext-segment=

From: H. Peter Anvin
Date: Tue Dec 10 2013 - 14:26:47 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/