https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288334

--- Comment #4 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=db9ef9d5f517a14160bb3d0a599b8392e01fb400

commit db9ef9d5f517a14160bb3d0a599b8392e01fb400
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-07-21 04:09:53 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2025-07-21 05:29:05 +0000

    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

 libexec/rtld-elf/map_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to