glibc/sysdeps/powerpc/nptl
Alan Modra 31a9bc8c55 powerpc64: Set up thread register for _dl_relocate_static_pie
libgcc ifunc resolvers that access hwcap via a field in the tcb can't
be called until the thread pointer is set up.  Other ifunc resolvers
might need access to at_platform.  This patch sets up a fake thread
pointer early to a copy of tcbhead_t.  hwcapinfo.c already had local
variables for hwcap and at_platform, replace them with an entire
tcbhead_t.  It's not that large and this way we easily ensure hwcap
and at_platform are at the same relative offsets as they are in the
real thread block.

The patch also conditionally disables part of tst-tlsifunc-static,
"bar address read from IFUNC resolver is incorrect".  We can't get a
proper address for a thread variable before glibc initialises tls.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2022-04-10 08:33:40 +09:30
..
bits Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
elide.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
pthread_spin_lock.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
pthread_spin_trylock.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
pthread_spin_unlock.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
pthread-offsets.h nptl: Add tests for internal pthread_rwlock_t offsets 2019-11-26 13:53:36 +00:00
pthreaddef.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tcb-offsets.sym powerpc: Only enable TLE with PPC_FEATURE2_HTM_NOSC 2018-09-21 10:18:03 -07:00
thread_pointer.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tls.h powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30