[PATCH v5 23/23] elf: Handle ld.so with LOAD segment gaps in _dl_find_object (bug 31943)
Florian Weimer
fweimer@redhat.com
Tue May 20 06:58:31 GMT 2025
* H. Peter Anvin:
> On 5/16/25 08:33, Florian Weimer wrote:
>> If the architecture supports multiple page sizes, compile
>> in support code that checks for gaps between load segments. Otherwise,
>> assume that ld does not produce such binaries.
>
> Isn't this a rather bold assumption to make? After all, this is
> something that the user can control via -T options.
This applies to ld.so only. This binary comes from the glibc build, and
we control its build flags. There's a test for unexpected gaps (added
in the previous commit).
There was already code that dealt with gaps in the main program, and
that code is preserved.
Thanks,
Florian
More information about the Libc-alpha
mailing list