Re: [PATCH] binfmt_elf: fix PIE load with randomization disabled

From: H. Peter Anvin
Date: Mon Dec 09 2013 - 16:54:13 EST


On 12/09/2013 01:52 PM, H.J. Lu wrote:
>>
>> Why is that? It would seem to be a big difference between a relocatable
>> binary (PIE) and one with a load address fixed at link time.
>>
>
> PIE with non-zero vaddr should be loaded at non-zero
> vaddr. Otherwise, PIE may not work as expected.
>

Please explain why that is the case, as it seems to be implying that PIE
isn't actually relocatable in that case...

-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/