https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113874
--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> --- I do wonder why __tls_get_addr would have to call the overloaded malloc, can we just not force-bind it to the glibc local malloc (and make sure that's compiled with -mgeneral-regs-only)?