https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119958
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > 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. s/TLS/gottpoff/ .