https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113874
--- Comment #11 from Florian Weimer <fw at gcc dot gnu.org> --- (In reply to Richard Biener from comment #10) > I think a glibc fix would be very much preferred. It's a bit of a maintenance nightmare because we have to update the code slightly each time new registers are added, and there isn't a good way for applications to detect whether they run on a compatible glibc. > Is -mtls-dialect=gnu2 > supposed to work on a per-TU base or are all parts of an executable + loaded > shlibs required to have the same setting? It's possible to link various TLS variants together, and they should interoperate.