https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119958
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is not a GCC bug but rather a binutils one, please report to it to them. https://sourceware.org/bugzilla/ The linker/assembler is doing relaxation on the TLS and doing it incorrectly. Not realzing the flags register is needed.