glibc/sysdeps/powerpc/powerpc64
Alan Modra e98c925fa4 tst-tlsopt-powerpc as a shared lib
This makes the __tls_get_addr_opt test run as a shared library, and so
actually test that DTPMOD64/DTPREL64 pairs are processed by ld.so to
support the __tls_get_adfr_opt call stub fast return.  After a
2017-01-24 patch (binutils f0158f4416) ld.bfd no longer emitted
unnecessary dynamic relocations against local thread variables,
instead setting up the __tls_index GOT entries for the call stub fast
return.  This meant tst-tlsopt-powerpc passed but did not check ld.so
relocation support.  After a 2017-07-16 patch (binutils 676ee2b5fa)
ld.bfd no longer set up the __tls_index GOT entries for the call stub
fast return, and tst-tlsopt-powerpc failed.

Compiling mod-tlsopt-powerpc.c with -DSHARED exposed a bug in
powerpc64/tls-macros.h, which defines a __TLS_GET_ADDR macro that
clashes with one defined in dl-tls.h.  The tls-macros.h version is
only used in that file, so delete it and expand.

	* sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
	tst-tlsopt-powerpc.c with function name change and no test harness.
	* sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
	Call tls_get_addr_opt_test.
	* sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
	(modules-names): Add mod-tlsopt-powerpc.
	(mod-tlsopt-powerpc.so-no-z-defs): Define.
	(tst-tlsopt-powerpc): Depend on .so.
	* sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
	define.  Expand use in TLS_GD and TLS_LD.
2017-08-03 15:39:21 +09:30
..
970 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
a2 PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
bits Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
cell PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
fpu powerpc: Fix sinf() IFUNC fallback. 2017-06-23 09:19:00 -03:00
multiarch powerpc: refactor strrchr IFUNC 2017-06-23 11:24:30 +05:30
power4 PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
power5 PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
power5+ powerpc: Add optimized version of [l]lroundf 2017-06-23 10:43:31 +05:30
power6 PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
power6x powerpc: Add optimized version of [l]lroundf 2017-06-23 10:43:31 +05:30
power7 Use locale_t, not __locale_t, throughout glibc 2017-06-20 20:30:06 -04:00
power8 powerpc: Clean up strlen and strnlen for power8 2017-07-03 10:46:13 +05:30
power9 PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
__longjmp-common.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
addmul_1.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
atomic-machine.h Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
backtrace.c Rename struct ucontext tag (bug 21457). 2017-06-26 22:03:58 +00:00
bsd-_setjmp.S PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
bsd-setjmp.S PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
bzero.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
configure powerpc64 configure message 2015-03-25 15:45:36 +10:30
configure.ac powerpc64 configure message 2015-03-25 15:45:36 +10:30
crti.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
crtn.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-dtprocnum.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-irel.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
dl-machine.c PowerPC64 ELFv2 PPC64_OPT_LOCALENTRY 2017-06-14 10:47:25 +09:30
dl-machine.h PowerPC64 ELFv2 PPC64_OPT_LOCALENTRY 2017-06-14 10:47:25 +09:30
dl-trampoline.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
entry.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ffsll.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hp-timing.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Implies Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64" 2013-01-10 10:44:05 +01:00
lshift.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
Makefile Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead 2014-07-03 08:38:25 -07:00
memcpy.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
memset.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
mul_1.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
ppc-mcount.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
register-dump.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
rtld-memset.c powerpc: Use generic memset for RTLD for ppc32/64 2010-09-29 12:21:14 -04:00
setjmp-common.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stackguard-macros.h PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64 2013-09-25 13:43:04 -05:00
start.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strchr.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strcmp.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strlen.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
strncmp.S PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
submul_1.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysdep.h PowerPC64 ENTRY_TOCLESS 2017-06-14 10:45:50 +09:30
tls-macros.h tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
tst-audit.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00