Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149292 | Differences between
and this patch

Collapse All | Expand All

(-)gcc/config/i386/linux.h (-1 / +1 lines)
Lines 186-192 Link Here
186
/* This macro may be overridden in i386/k*bsd-gnu.h.  */
186
/* This macro may be overridden in i386/k*bsd-gnu.h.  */
187
#define REG_NAME(reg) reg
187
#define REG_NAME(reg) reg
188
188
189
#ifdef TARGET_LIBC_PROVIDES_SSP
189
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
190
/* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
190
/* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
191
#define TARGET_THREAD_SSP_OFFSET	0x14
191
#define TARGET_THREAD_SSP_OFFSET	0x14
192
#endif
192
#endif
(-)gcc/config/i386/linux64.h (-1 / +1 lines)
Lines 74-80 Link Here
74
/* This macro may be overridden in i386/k*bsd-gnu.h.  */
74
/* This macro may be overridden in i386/k*bsd-gnu.h.  */
75
#define REG_NAME(reg) reg
75
#define REG_NAME(reg) reg
76
76
77
#ifdef TARGET_LIBC_PROVIDES_SSP
77
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
78
/* i386 glibc provides __stack_chk_guard in %gs:0x14,
78
/* i386 glibc provides __stack_chk_guard in %gs:0x14,
79
   x86_64 glibc provides it in %fs:0x28.  */
79
   x86_64 glibc provides it in %fs:0x28.  */
80
#define TARGET_THREAD_SSP_OFFSET	(TARGET_64BIT ? 0x28 : 0x14)
80
#define TARGET_THREAD_SSP_OFFSET	(TARGET_64BIT ? 0x28 : 0x14)
(-)gcc/config/rs6000/linux.h (-1 / +1 lines)
Lines 114-120 Link Here
114
114
115
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
115
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
116
116
117
#ifdef TARGET_LIBC_PROVIDES_SSP
117
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
118
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2).  */
118
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2).  */
119
#define TARGET_THREAD_SSP_OFFSET	-0x7008
119
#define TARGET_THREAD_SSP_OFFSET	-0x7008
120
#endif
120
#endif
(-)gcc/config/rs6000/linux64.h (-1 / +1 lines)
Lines 548-554 Link Here
548
548
549
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
549
#define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h"
550
550
551
#ifdef TARGET_LIBC_PROVIDES_SSP
551
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
552
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2),
552
/* ppc32 glibc provides __stack_chk_guard in -0x7008(2),
553
   ppc64 glibc provides it at -0x7010(13).  */
553
   ppc64 glibc provides it at -0x7010(13).  */
554
#define TARGET_THREAD_SSP_OFFSET	(TARGET_64BIT ? -0x7010 : -0x7008)
554
#define TARGET_THREAD_SSP_OFFSET	(TARGET_64BIT ? -0x7010 : -0x7008)
(-)gcc/config/s390/linux.h (-1 / +1 lines)
Lines 94-100 Link Here
94
94
95
#define MD_UNWIND_SUPPORT "config/s390/linux-unwind.h"
95
#define MD_UNWIND_SUPPORT "config/s390/linux-unwind.h"
96
96
97
#ifdef TARGET_LIBC_PROVIDES_SSP
97
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
98
/* s390 glibc provides __stack_chk_guard in 0x14(tp),
98
/* s390 glibc provides __stack_chk_guard in 0x14(tp),
99
   s390x glibc provides it at 0x28(tp).  */
99
   s390x glibc provides it at 0x28(tp).  */
100
#define TARGET_THREAD_SSP_OFFSET        (TARGET_64BIT ? 0x28 : 0x14)
100
#define TARGET_THREAD_SSP_OFFSET        (TARGET_64BIT ? 0x28 : 0x14)
(-)gcc/config/sparc/linux.h (-1 / +1 lines)
Lines 230-236 Link Here
230
#undef NEED_INDICATE_EXEC_STACK
230
#undef NEED_INDICATE_EXEC_STACK
231
#define NEED_INDICATE_EXEC_STACK 1
231
#define NEED_INDICATE_EXEC_STACK 1
232
232
233
#ifdef TARGET_LIBC_PROVIDES_SSP
233
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
234
/* sparc glibc provides __stack_chk_guard in [%g7 + 0x14].  */
234
/* sparc glibc provides __stack_chk_guard in [%g7 + 0x14].  */
235
#define TARGET_THREAD_SSP_OFFSET	0x14
235
#define TARGET_THREAD_SSP_OFFSET	0x14
236
#endif
236
#endif
(-)gcc/config/sparc/linux64.h (-1 / +1 lines)
Lines 364-370 Link Here
364
#undef NEED_INDICATE_EXEC_STACK
364
#undef NEED_INDICATE_EXEC_STACK
365
#define NEED_INDICATE_EXEC_STACK 1
365
#define NEED_INDICATE_EXEC_STACK 1
366
366
367
#ifdef TARGET_LIBC_PROVIDES_SSP
367
#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__
368
/* sparc glibc provides __stack_chk_guard in [%g7 + 0x14],
368
/* sparc glibc provides __stack_chk_guard in [%g7 + 0x14],
369
   sparc64 glibc provides it at [%g7 + 0x28].  */
369
   sparc64 glibc provides it at [%g7 + 0x28].  */
370
#define TARGET_THREAD_SSP_OFFSET	(TARGET_ARCH64 ? 0x28 : 0x14)
370
#define TARGET_THREAD_SSP_OFFSET	(TARGET_ARCH64 ? 0x28 : 0x14)

Return to bug 149292