This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] S/390: stack_protect_set/test
On Mon, Jul 11, 2005 at 11:45:01AM -0400, Jakub Jelinek wrote:
> The TLS canary has at least two reasons, speed and avoiding COPY relocs.
> If __stack_chk_guard ends up living in program's .bss due to COPY
> relocation, it is far easier to overwrite it there by overflowing some
> .data section buffer preceeding it.
Forgot another reason for TLS canary: PIC setup sequence can be avoided
with it in many cases. Not sure if that applies to s390{,x} though,
nor if using __stack_chk_fail_local there would do any good.
Jakub