[PATCH] S/390: stack_protect_set/test

Jakub Jelinek jakub@redhat.com
Mon Jul 11 16:49:00 GMT 2005


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



More information about the Gcc-patches mailing list