Files
freebsd/libexec/rtld-elf
Konstantin Belousov db9ef9d5f5 rtld: do not relocate tlsinit address twice
The addend for PT_TLS p_vaddr value should be obj' relocbase and not
mapbase. It does not matter for dso which is linked at the address
zero, but for executables in direct-exec mode with non-zero link
address mapbase is already at the link base.  Then, adding mapbase to
phtls->p_vaddr adds twice as much relocbase offset as needed.

PR:	288334
Reported by:	Jordan Gordeev <[email protected]>
Reviewed by:	jrtc27
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D51448
2025-07-21 08:29:05 +03:00
..
…
…
…
…
2024-10-14 10:26:17 -07:00
2025-05-02 21:08:09 +03:00
2025-05-02 21:08:09 +03:00
2024-11-07 07:15:30 +02:00
…