Work around lack of dlpi_tls_modid before Solaris 11.5

Programming / Compilers / GCC - ro [138bc75d-0d04-0410-961f-82ee72b054a4] - 14 April 2019 09:30 EDT

2019-04-14 Rainer Orth Iain Buclaw

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) [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.

79c213076b5 Work around lack of dlpi_tls_modid before Solaris 11.5
libphobos/ChangeLog | 20 +
libphobos/Makefile.in | 1 +
libphobos/configure | 5918 ++++++++++++-----------
libphobos/configure.ac | 2 +
libphobos/libdruntime/Makefile.in | 1 +
libphobos/libdruntime/gcc/config.d.in | 3 +
libphobos/libdruntime/gcc/sections/elf_shared.d | 43 +-
libphobos/m4/druntime/os.m4 | 14 +
libphobos/src/Makefile.in | 1 +
libphobos/testsuite/Makefile.in | 1 +
10 files changed, 3116 insertions(+), 2888 deletions(-)

Upstream: gcc.gnu.org


  • Share