glibc/sysdeps/powerpc
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
fpu powerpc: Remove fcopysign{f} implementation 2022-04-07 12:00:16 -03:00
nofpu Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nptl powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
power4 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
power6 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
powerpc32 powerpc: Remove fcopysign{f} implementation 2022-04-07 12:00:16 -03:00
powerpc64 powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
sys/platform Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
abort-instr.h Update. 2002-09-15 18:31:23 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
cpu-features.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
cpu-features.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-lookupcfg.h elf: Issue la_symbind for bind-now (BZ #23734) 2022-02-01 14:49:46 -03:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-tls.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-tls.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ffs.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
fpu_control.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
gccframe.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
hwcapinfo.c powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
hwcapinfo.h powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
ifunc-sel.h Fix powerpc ifunc-sel.h build for -Os. 2018-03-02 22:27:56 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
libc-tls.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locale-defines.sym powerpc: strcasestr optmization for power8 2016-04-22 19:23:13 +05:30
longjmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
machine-gmon.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Makefile powerpc: Fix unrecognized instruction errors with recent binutils 2021-09-29 14:42:20 -05:00
math-tests-snan-cast.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
mod-cache-ppc.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
mod-tlsopt-powerpc.c elf: Drop elf/tls-macros.h in favor of __thread and tls_model attributes [BZ #28152] [BZ #28205] 2021-08-16 09:59:30 -07:00
mp_clz_tab.c Update. 2002-03-14 20:48:50 +00:00
novmx-longjmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
novmx-sigjmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
novmxsetjmp.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
preconfigure powerpc: Add support for POWER10 2020-06-29 10:08:38 -03:00
preconfigure.ac powerpc: Add support for POWER10 2020-06-29 10:08:38 -03:00
rtld-global-offsets.sym powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
sigjmp.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
stackinfo.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sysdep.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
test-arith.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
test-arithf.c Update. 1997-08-10 18:37:15 +00:00
test-get_hwcap-static.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
test-get_hwcap.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
test-gettimebase.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-cache-ppc-static-dlopen.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-cache-ppc-static.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-cache-ppc.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-set_ppr.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-stack-align.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-tlsifunc-static.c powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
tst-tlsifunc.c powerpc64: Set up thread register for _dl_relocate_static_pie 2022-04-10 08:33:40 +09:30
tst-tlsopt-powerpc.c tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
Versions nptl: Move __pthread_unwind_next into libc 2021-04-21 19:49:50 +02:00