Messages in this thread | | | Date | Mon, 9 Dec 2013 14:03:24 -0800 | Subject | Re: [PATCH] binfmt_elf: fix PIE load with randomization disabled | From | "H.J. Lu" <> |
| |
On Mon, Dec 9, 2013 at 2:01 PM, H. Peter Anvin <hpa@zytor.com> wrote: > 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.) >
Kernel can consider PIE with non-zero vaddr isn't real PIE.
-- H.J.
| |