This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]