[leaf-commits] src/bering-uclibc4/source/buildenv 50_all_gcc44_no_ssp_tls_uclibc.patch, NONE, 1.1 buildtool.cfg, 1.7, 1.8 buildtool.mk, 1.10, 1.11
Andrew <[email protected]> Sat, 11 Dec 2010 18:54:28 +0000
| Newsgroups | gmane.linux.leaf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/leaf/src/bering-uclibc4/source/buildenv In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv14826 Modified Files: buildtool.cfg buildtool.mk Added Files: 50_all_gcc44_no_ssp_tls_uclibc.patch Log Message: Disabled support of stack protector on uClibc for GCC (see http://bugs.gentoo.org/show_bug.cgi?id=149292) --- NEW FILE: 50_all_gcc44_no_ssp_tls_uclibc.patch --- 2009-08-08 Peter S. Mazinger <[email protected]>, Natanael Copa <[email protected]> #149292 b.g.o * gcc/config/i386/linux.h uclibc don't support TLS on stack-protector * gcc/config/i386/linux64.h uclibc don't support TLS on stack-protector * gcc/config/rs6000/linux.h uclibc don't support TLS on stack-protector * gcc/config/i386/linux.h uclibc don't support TLS on stack-protector * gcc/config/sparc/linux.h uclibc don't support TLS on stack-protector * gcc/config/sparc/linux64.h uclibc don't support TLS on stack-protector --- gcc/config/i386/linux.h 2 Jul 2005 08:52:20 -0000 1.60 +++ gcc/config/i386/linux.h 2 Jul 2005 08:52:20 -0000 1.60 @@ -186,7 +186,7 @@ /* This macro may be overridden in i386/k*bsd-gnu.h. */ #define REG_NAME(reg) reg -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* i386 glibc provides __stack_chk_guard in %gs:0x14. */ #define TARGET_THREAD_SSP_OFFSET 0x14 #endif --- gcc/config/i386/linux64.h 2 Jul 2005 08:52:20 -0000 1.33 +++ gcc/config/i386/linux64.h 2 Jul 2005 08:52:20 -0000 1.33 @@ -74,7 +74,7 @@ /* This macro may be overridden in i386/k*bsd-gnu.h. */ #define REG_NAME(reg) reg -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* i386 glibc provides __stack_chk_guard in %gs:0x14, x86_64 glibc provides it in %fs:0x28. */ #define TARGET_THREAD_SSP_OFFSET (TARGET_64BIT ? 0x28 : 0x14) --- gcc/config/rs6000/linux.h 2 Jul 2005 08:52:11 -0000 1.53 +++ gcc/config/rs6000/linux.h 2 Jul 2005 08:52:11 -0000 1.53 @@ -114,7 +114,7 @@ #define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h" -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* ppc32 glibc provides __stack_chk_guard in -0x7008(2). */ #define TARGET_THREAD_SSP_OFFSET -0x7008 #endif --- gcc/config/rs6000/linux64.h 2 Jul 2005 08:52:15 -0000 1.81 +++ gcc/config/rs6000/linux64.h 2 Jul 2005 08:52:15 -0000 1.81 @@ -548,7 +548,7 @@ #define MD_UNWIND_SUPPORT "config/rs6000/linux-unwind.h" -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* ppc32 glibc provides __stack_chk_guard in -0x7008(2), ppc64 glibc provides it at -0x7010(13). */ #define TARGET_THREAD_SSP_OFFSET (TARGET_64BIT ? -0x7010 : -0x7008) --- gcc/config/s390/linux.h 2005-08-22 15:53:01.000000000 +0200 1.40 +++ gcc/config/s390/linux.h 2005-08-22 15:53:01.000000000 +0200 1.40 @@ -94,7 +94,7 @@ #define MD_UNWIND_SUPPORT "config/s390/linux-unwind.h" -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* s390 glibc provides __stack_chk_guard in 0x14(tp), s390x glibc provides it at 0x28(tp). */ #define TARGET_THREAD_SSP_OFFSET (TARGET_64BIT ? 0x28 : 0x14) --- gcc/config/sparc/linux.h 6 Jul 2005 07:48:57 -0000 1.72 +++ gcc/config/sparc/linux.h 6 Jul 2005 07:48:57 -0000 1.72 @@ -230,7 +230,7 @@ #undef NEED_INDICATE_EXEC_STACK #define NEED_INDICATE_EXEC_STACK 1 -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* sparc glibc provides __stack_chk_guard in [%g7 + 0x14]. */ #define TARGET_THREAD_SSP_OFFSET 0x14 #endif --- gcc/config/sparc/linux64.h 6 Jul 2005 07:48:57 -0000 1.95 +++ gcc/config/sparc/linux64.h 6 Jul 2005 07:48:57 -0000 1.95 @@ -364,7 +364,7 @@ #undef NEED_INDICATE_EXEC_STACK #define NEED_INDICATE_EXEC_STACK 1 -#ifdef TARGET_LIBC_PROVIDES_SSP +#if defined TARGET_LIBC_PROVIDES_SSP && !defined __UCLIBC__ /* sparc glibc provides __stack_chk_guard in [%g7 + 0x14], sparc64 glibc provides it at [%g7 + 0x28]. */ #define TARGET_THREAD_SSP_OFFSET (TARGET_ARCH64 ? 0x28 : 0x14) Index: buildtool.cfg =================================================================== RCS file: /cvsroot/leaf/src/bering-uclibc4/source/buildenv/buildtool.cfg,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** buildtool.cfg 29 Oct 2010 16:00:11 -0000 1.7 --- buildtool.cfg 11 Dec 2010 18:54:26 -0000 1.8 *************** *** 79,82 **** --- 79,90 ---- envname = GCCTAR </File> + + <File 50_all_gcc44_no_ssp_tls_uclibc.patch> + Server = cvs4-sourceforge + Directory = buildenv + Revision = HEAD + envname = GCC_PATCH1 + </File> + #<File gcc-3.3-libstdc++nowchar.patch> # Server = cvs4-sourceforge Index: buildtool.mk =================================================================== RCS file: /cvsroot/leaf/src/bering-uclibc4/source/buildenv/buildtool.mk,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** buildtool.mk 1 Nov 2010 11:02:08 -0000 1.10 --- buildtool.mk 11 Dec 2010 18:54:26 -0000 1.11 *************** *** 232,235 **** --- 232,236 ---- $(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked # Apply any files named gcc-*.patch from the source directory to gcc + cat $(GCC_PATCH1) | patch -p0 -d $(GCC_DIR) ## $(SOURCE_DIR)/patch-kernel.sh $(GCC_DIR) $(SOURCE_DIR) gcc-*.patch # (cd $(GCC_DIR) ; patch -p1 < ../gcc-3.3-libstdc++nowchar.patch) ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev