]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mips: Add TLS_DTV_OFFSET to the result of tls_get_addr_common.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 9 Dec 2021 21:16:19 +0000 (13:16 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 29 Apr 2022 20:50:05 +0000 (13:50 -0700)
commitb602867013cfb41b2b884f0fc50748c4f12608d4
tree98f127e352645569488a266cb27d37f5c81ad651
parentbd3afd52745a373560203d7baf694f0de38b1ea2
mips: Add TLS_DTV_OFFSET to the result of tls_get_addr_common.

Previously TLS_DTV_OFFSET was added to the offset passed to
tls_get_addr_common; however, this approach matches powerpc and RISC-V
and better matches the intention.

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

(cherry picked from commit 23e0c0e9a3e0c73169c2aa90e26bb5cb35f1aa2f)
libexec/rtld-elf/mips/reloc.c