This is the mail archive of the
mailing list for the binutils project.
Re: glibc: loading of shared objects with holes wastes address space
> It's not the processor that matters here, it's the kernel. The question
> is whether the kernel will want to some day require executables to use a
> larger page size.
It's not necessarily even a question of "require". The kernel might decide
that the mapping for a particular executable or DSO (at a particular time,
even) is worthwhile to align to a 2M boundary so it can use the hardware
feature of 2MB-aligned page table entries for that mapping. If it does so,
and the second segment is aligned 2M away from the first, then it can use
2M page table entries for both segments.