https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113874
--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #16) > 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)? I realize we end up calling memset (but __mempcpy?) as well, that might end up in an ifunc and thus using non-general regs as well (and be overloaded of course). So the whole __tls_get_addr path would need to make sure it never goes out of glibc controlled sources.