https://sourceware.org/bugzilla/show_bug.cgi?id=32761
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=31799
--- Comment #4 from Sam James <sam at gentoo dot org> ---
Started with this glibc commit:
e7b553272196e6175b8a15f807cb59217ba2843a is the first bad commit
commit e7b553272196e6175b8a15f807cb59217ba2843a
Author: H.J. Lu <[email protected]>
Date: Tue Oct 29 06:01:14 2024 +0800
elf: Handle static PIE with non-zero load address [BZ #31799]
For a static PIE with non-zero load address, its PT_DYNAMIC segment
entries contain the relocated values for the load address in static PIE.
Since static PIE usually doesn't have PT_PHDR segment, use p_vaddr of
the PT_LOAD segment with offset == 0 as the load address in static PIE
and adjust the entries of PT_DYNAMIC segment in static PIE by properly
setting the l_addr field for static PIE. This fixes BZ #31799.
Signed-off-by: H.J. Lu <[email protected]>
Reviewed-by: Noah Goldstein <[email protected]>
configure | 74 ++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 36 +++++++++++++++++++++
elf/Makefile | 20 ++++++++++++
elf/dl-reloc-static-pie.c | 30 +++++++++++++-----
elf/tst-pie-address-static.c | 19 ++++++++++++
elf/tst-pie-address.c | 28 +++++++++++++++++
6 files changed, 200 insertions(+), 7 deletions(-)
create mode 100644 elf/tst-pie-address-static.c
create mode 100644 elf/tst-pie-address.c
--
You are receiving this mail because:
You are on the CC list for the bug.