From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761716Ab3LIWCK (ORCPT ); Mon, 9 Dec 2013 17:02:10 -0500 Received: from terminus.zytor.com ([198.137.202.10]:37203 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754849Ab3LIWCF (ORCPT ); Mon, 9 Dec 2013 17:02:05 -0500 Message-ID: <52A63DCF.2060504@zytor.com> Date: Mon, 09 Dec 2013 14:01:51 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "H.J. Lu" CC: Jiri Kosina , LKML , Josh Boyer Subject: Re: [PATCH] binfmt_elf: fix PIE load with randomization disabled References: <52A63AD4.2030101@zytor.com> <52A63BF3.1000608@zytor.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/09/2013 01:59 PM, H.J. Lu wrote: > > A Linux/x86-64 user came to me at the end of 2008. He needed > to load an executable above 4GB. I added -Ttext-segment option > to linker: > > https://sourceware.org/ml/binutils/2009-01/msg00173.html > > so that he could load his program compiled as PIE above 4GB. > If kernel is changed not to honor it, his program won't work any more. > In normal case, PIE has zero vaddr and this doesn't apply. > That doesn't seem to be PIE at all, and if it is PIE, then it should be relocatable (I agree btw with randomizing upward from the selected address.) -hpa