deduplicate TP_ADJ logic out of each arch, replace with TP_OFFSET
authorRich Felker <dalias@aerifal.cx>
Tue, 25 Aug 2020 02:04:52 +0000 (22:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 25 Aug 2020 02:04:52 +0000 (22:04 -0400)
commitea71a9004e08030a15d45186e263fd2b0c51cc25
tree9bbe576df4289c730b60407178c2d786f325b224
parent19f8642494b7d27b2ceed5c14d4a0b27cb749afe
deduplicate TP_ADJ logic out of each arch, replace with TP_OFFSET

the only part of TP_ADJ that was not uniquely determined by
TLS_ABOVE_TP was the 0x7000 adjustment used mainly on mips and powerpc
variants.
17 files changed:
arch/aarch64/pthread_arch.h
arch/arm/pthread_arch.h
arch/i386/pthread_arch.h
arch/m68k/pthread_arch.h
arch/microblaze/pthread_arch.h
arch/mips/pthread_arch.h
arch/mips64/pthread_arch.h
arch/mipsn32/pthread_arch.h
arch/or1k/pthread_arch.h
arch/powerpc/pthread_arch.h
arch/powerpc64/pthread_arch.h
arch/riscv64/pthread_arch.h
arch/s390x/pthread_arch.h
arch/sh/pthread_arch.h
arch/x32/pthread_arch.h
arch/x86_64/pthread_arch.h
src/internal/pthread_impl.h