https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88150
--- Comment #14 from Rainer Orth <ro at gcc dot gnu.org> --- Author: ro Date: Sun Apr 14 09:30:42 2019 New Revision: 270347 URL: https://gcc.gnu.org/viewcvs?rev=270347&root=gcc&view=rev Log: Work around lack of dlpi_tls_modid before Solaris 11.5 2019-04-14 Rainer Orth <r...@cebitec.uni-bielefeld.de> Iain Buclaw <ibuc...@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. Modified: trunk/libphobos/ChangeLog trunk/libphobos/Makefile.in trunk/libphobos/configure (contents, props changed) trunk/libphobos/configure.ac trunk/libphobos/libdruntime/Makefile.in trunk/libphobos/libdruntime/gcc/config.d.in trunk/libphobos/libdruntime/gcc/sections/elf_shared.d trunk/libphobos/m4/druntime/os.m4 trunk/libphobos/src/Makefile.in trunk/libphobos/testsuite/Makefile.in