https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102352
Ard Biesheuvel <ardb at kernel dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ardb at kernel dot org --- Comment #1 from Ard Biesheuvel <ardb at kernel dot org> --- For 32-bit ARM, it would be useful to have -mstack-protector-guard=tls -mstack-protector-guard-offset=<offset> and use gen_load_tp_hard() internally. As we also use the TLS register to index other per-task data (using __builtin_thread_pointer()), we get better code this way, since the compiler understands that there is no need to load the TLS register multiple times in the same function.