https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106435
--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > This might be an emulated TLS issue ... As it looks like it is not working > on mingw either. quite possibly; - there was a change made to support cross-TU static inits for TLS - but that did not include an equivalent for emulated TLS (or targets without symbol aliases).