https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108299
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You're right. All we'd need to do is revert PR101786 change and call __tls_init if in the current TU there are any dynamic TLS initializations when any TLS var from current TU is referenced, even when it has just static initializer.