S/390: Fix PR91628
authorRobin Dapp <rdapp@linux.ibm.com>
Tue, 7 Apr 2020 19:05:38 +0000 (21:05 +0200)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 7 Apr 2020 19:08:06 +0000 (21:08 +0200)
commit88e508f9f112acd07d0c49c53589160db8c85fcd
treea86b2b2c6d8467dc434f994aff6f52aa8ba4aedc
parent50c7853216e8511971c55b51d7fe29173db4749b
S/390: Fix PR91628

With this patch we get rid of the usage of the glibc-internal symbol
__tls_get_addr_internal.

If build with multilib, the file
gcc/libphobos/libdruntime/config/systemz/get_tls_offset.S is used
for both configurations: systemz and s390.
Therefore both implementations are now in the systemz file which
uses an "#ifdef __s390x__" in order to distinguish both cases.
The s390 file is just including the systemz one.

libphobos/ChangeLog:

2020-04-07  Robin Dapp  <rdapp@linux.ibm.com>
            Stefan Liebler  <stli@linux.ibm.com>

* configure: Regenerate.
* libdruntime/Makefile.am: Add s390x and s390.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/config/s390/get_tls_offset.S: New file.
* libdruntime/config/systemz/get_tls_offset.S: New file.
* libdruntime/gcc/sections/elf_shared.d: Use ibmz_get_tls_offset.
* m4/druntime/cpu.m4: Add s390x and s390.
libphobos/ChangeLog
libphobos/configure
libphobos/libdruntime/Makefile.am
libphobos/libdruntime/Makefile.in
libphobos/libdruntime/config/s390/get_tls_offset.S [new file with mode: 0644]
libphobos/libdruntime/config/systemz/get_tls_offset.S [new file with mode: 0644]
libphobos/libdruntime/gcc/sections/elf_shared.d
libphobos/m4/druntime/cpu.m4