glibc/sysdeps/x86_64/64
H.J. Lu 6259ab3941 ld.so: Always use MAP_COPY to map the first segment [BZ #30452]
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.
2023-06-30 10:42:42 -07:00
..
dl-tunables.list hurd: Implement prefer_map_32bit_exec tunable 2023-04-24 22:48:35 +02:00
Implies-after Add x86_64 Implies-after files 2012-05-15 14:38:32 -07:00
Makefile ld.so: Always use MAP_COPY to map the first segment [BZ #30452] 2023-06-30 10:42:42 -07:00
tst-map-32bit-1a.c hurd: Implement prefer_map_32bit_exec tunable 2023-04-24 22:48:35 +02:00
tst-map-32bit-1b.c hurd: Implement prefer_map_32bit_exec tunable 2023-04-24 22:48:35 +02:00
tst-map-32bit-2.c ld.so: Always use MAP_COPY to map the first segment [BZ #30452] 2023-06-30 10:42:42 -07:00
tst-map-32bit-mod-2.c ld.so: Always use MAP_COPY to map the first segment [BZ #30452] 2023-06-30 10:42:42 -07:00
tst-map-32bit-mod.c hurd: Implement prefer_map_32bit_exec tunable 2023-04-24 22:48:35 +02:00