mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
6259ab3941
The first segment in a shared library may be read-only, not executable. To support LD_PREFER_MAP_32BIT_EXEC on such shared libraries, we also check MAP_DENYWRITE to decide if MAP_32BIT should be passed to mmap. Normally the first segment is mapped with MAP_COPY, which is defined as (MAP_PRIVATE | MAP_DENYWRITE). But if the segment alignment is greater than the page size, MAP_COPY isn't used to allocate enough space to ensure that the segment can be properly aligned. Map the first segment with MAP_COPY in this case to fix BZ #30452. |
||
---|---|---|
.. | ||
dl-tunables.list | ||
Implies-after | ||
Makefile | ||
tst-map-32bit-1a.c | ||
tst-map-32bit-1b.c | ||
tst-map-32bit-2.c | ||
tst-map-32bit-mod-2.c | ||
tst-map-32bit-mod.c |