HomeFreeBSD

libc: Reassociate pointer arithmetic in __libc_tls_get_addr

Description

libc: Reassociate pointer arithmetic in __libc_tls_get_addr

Rather than compute a biased pointer only to then un-bias it again, un-bias
the offset before adding it to the DTV entry.

This mirrors rtld-elf commit d71c97026366 ("rtld-elf: Push
TLS_DTV_OFFSET into tls_get_addr_common's arguments")

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D50224

Details

Provenance
jrtc27Authored on May 7 2025, 7:19 PM
Reviewer
kib
Differential Revision
D50224: libc: Reassociate pointer arithmetic in __libc_tls_get_addr
Parents
rG271128b06986: mbuf: Allow clusters to fill an entire jumbo page.
Branches
Unknown
Tags
Unknown