]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtld: use _get_tp() in __tls_get_addr()
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 7 Apr 2021 03:49:28 +0000 (06:49 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 9 Apr 2021 20:46:24 +0000 (23:46 +0300)
commite8b9c508b7ae5be618ada089103468c400e465cd
treeb1aa5a0eba0c4e6eaaa9f8cdab793a45c4aa29c9
parent7cb32a0d03437f881169b1c55cce89cf70ed43dd
rtld: use _get_tp() in __tls_get_addr()

This eliminates some non-trivial amount of code duplication, where done.
Only x86 and mips are handled right now.

Tested by:      bdragon (powerpc), mhorne (riscv)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29623
libexec/rtld-elf/amd64/reloc.c
libexec/rtld-elf/i386/reloc.c
libexec/rtld-elf/mips/reloc.c
libexec/rtld-elf/mips/rtld_machdep.h