From 8d5d3edddf70a8683c10e000817e8d2cd5b8c974 Mon Sep 17 00:00:00 2001 From: Svante Signell Date: Sat, 12 Jan 2019 21:17:56 +0000 Subject: [PATCH] gnu.h (TARGET_THREAD_SSP_OFFSET): Define. * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define. (TARGET_CAN_SPLIT_STACK): Define. (TARGET_THREAD_SPLIT_STACK_OFFSET): Define. From-SVN: r267886 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/gnu.h | 15 +++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7126508a3a4..a2735a5e4c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-01-12 Svante Signell + + * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define. + (TARGET_CAN_SPLIT_STACK): Define. + (TARGET_THREAD_SPLIT_STACK_OFFSET): Define. + 2019-01-05 Jan Hubicka * params.def (inline-unit-growth): Set to 40. diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index 69d9e5fee27..9d1dcde1c99 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -37,11 +37,14 @@ along with GCC. If not, see . #ifdef TARGET_LIBC_PROVIDES_SSP -/* Not supported yet. */ -# undef TARGET_THREAD_SSP_OFFSET - -/* Not supported yet. */ -# undef TARGET_CAN_SPLIT_STACK -# undef TARGET_THREAD_SPLIT_STACK_OFFSET +/* i386 glibc provides __stack_chk_guard in %gs:0x14. */ +#define TARGET_THREAD_SSP_OFFSET 0x14 +/* We only build the -fsplit-stack support in libgcc if the + assembler has full support for the CFI directives. */ +#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE +#define TARGET_CAN_SPLIT_STACK +#endif +/* We steal the last transactional memory word. */ +#define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30 #endif -- 2.30.2