[PATCH] Add Prefer_MAP_32BIT_EXEC for Silvermont

H.J. Lu hjl.tools@gmail.com
Fri Dec 11 21:14:00 GMT 2015


On Fri, Dec 11, 2015 at 12:59 PM, Andi Kleen <andi@firstfloor.org> wrote:
>
>
> BTW the patch could be fixed to support all 4GB by guessing a hole
> and using the mmap hint. But it would complicate it somewhat.
>

That means user space has to keep track mmap/mremap/munmap.
It isn't going to work.

We need a new MAP_4GB bit to get 4GB address and we can make it
backward compatible with old kernels.   Can we extend the 64-bit
mmap interface to pass the extra bit in upper 32bits of the 5th argument
if we have run out bits in the 5th argument.

-- 
H.J.



More information about the Libc-alpha mailing list