Work around lack of dlpi_tls_modid before Solaris 11.5
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 14 Apr 2019 09:30:42 +0000 (09:30 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Sun, 14 Apr 2019 09:30:42 +0000 (09:30 +0000)
commit235d1c467babc736f4800c5a26f2989fe41d6351
treebc9d2ab7897e04e60705bb4981d7a7713a0c7b46
parentba838aa6c360912bc203068ef2161fce137fb97d
Work around lack of dlpi_tls_modid before Solaris 11.5

2019-04-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/88150
* m4/druntime/os.m4 (DRUNTIME_OS_DLPI_TLS_MODID): New macro.
* configure.ac: Use it.
Call AC_USE_SYSTEM_EXTENSIONS.
* configure: Regenerate.
* Makefile.in, libdruntime/Makefile.in, src/Makefile.in,
testsuite/Makefile.in: Regenerate.
* libdruntime/gcc/config.d.in (OS_Have_Dlpi_Tls_Modid): Define.
* libdruntime/gcc/sections/elf_shared.d: Import gcc.config.
(scanSegments) <PT_TLS> [OS_Have_Dlpi_Tls_Modid]: Use
dlpi_tls_modid.
[Solaris]: Use dlinfo(RTLD_DI_LINKMAP) to get rt_tlsmodid.
Otherwise clear pdso._tlsMod, pdso._tlsSize.
(getTLSRange) [Solaris && !OS_Have_Dlpi_Tls_Modid]: Readjust mod.

Co-Authored-By: Iain Buclaw <ibuclaw@gdcproject.org>
From-SVN: r270347
libphobos/ChangeLog
libphobos/Makefile.in
libphobos/configure
libphobos/configure.ac
libphobos/libdruntime/Makefile.in
libphobos/libdruntime/gcc/config.d.in
libphobos/libdruntime/gcc/sections/elf_shared.d
libphobos/m4/druntime/os.m4
libphobos/src/Makefile.in
libphobos/testsuite/Makefile.in