HomeFreeBSD

libthr: Remove the DTV_OFFSET macro.

Description

libthr: Remove the DTV_OFFSET macro.

This macro is confusing as it is not related to the similarly named
TLS_DTV_OFFSET. Instead, replace its one use with the desired
expression which is the same on all platforms.

Reviewed by: kib, emaste, jrtc27
Sponsored by: The University of Cambridge, Google Inc.
Differential Revision: https://reviews.freebsd.org/D33345

(cherry picked from commit 5d8176337e691d3ca3fa7d519bc3eaacf6d9faee)

Details

Provenance
jhbAuthored on Dec 9 2021, 9:15 PM
Reviewer
kib
Differential Revision
D33345: libthr: Remove the DTV_OFFSET macro.
Parents
rG6138e8498185: rtld-elf: Use _get_tp in __tls_get_addr for aarch64 and riscv64.
Branches
Unknown
Tags
Unknown