https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81708
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 41949 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41949&action=edit Patch that introduces mstack-protector-guard-offset= and mstack-protector-guard-reg= Prototype patch that introduces mstack-protector-guard-offset= and mstack-protector-guard-reg= options. The later can be used to override default TLS reg, so compilation becomes independent of -mcmodel=kernel.