https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This could be a glibc, binutils or gcc issue. You have more than one page of TLS variables here. I don't remember the limits but it might be you are hitting that limit.