https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117149
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fstack-protector defaults to using TLS on x86-linux-gnu. You need to either use `-mstack-protector-guard-symbol=SYMBOL` (and set the symbol up correctly. Or use -fno-stack-protector .