diff options
author | 2003-04-09 15:48:06 +0000 | |
---|---|---|
committer | 2003-04-09 15:48:06 +0000 | |
commit | de396f11d12339c03a400c69c83b26ba02d3ad57 (patch) | |
tree | 96e68568ceb82b6e29434530211de23ee9f89748 /sys-devel/gcc | |
parent | Updated ProPolice to protector-3.2.2-5 (diff) | |
download | gentoo-2-de396f11d12339c03a400c69c83b26ba02d3ad57.tar.gz gentoo-2-de396f11d12339c03a400c69c83b26ba02d3ad57.tar.bz2 gentoo-2-de396f11d12339c03a400c69c83b26ba02d3ad57.zip |
Updated ProPolice to protector-3.2.2-5
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r-- | sys-devel/gcc/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/gcc/files/3.2.2/protector.patch | 71 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-3.2.2-r3.ebuild | 5 | ||||
-rw-r--r-- | sys-devel/gcc/manifest | 4 |
4 files changed, 71 insertions, 15 deletions
diff --git a/sys-devel/gcc/ChangeLog b/sys-devel/gcc/ChangeLog index e1e7b1598ced..ac626e320f41 100644 --- a/sys-devel/gcc/ChangeLog +++ b/sys-devel/gcc/ChangeLog @@ -1,6 +1,6 @@ # ChangeLog for sys-devel/gcc # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.86 2003/04/03 21:55:06 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.87 2003/04/09 15:47:54 frogger Exp $ 24 Mar 2003; Martin Schlemmer <azarah@gentoo.org> : - Fix latest ebuild to only build static if we are just building the C @@ -36,6 +36,10 @@ *gcc-3.2.2-r3 (03 Mar 2003) + 09 Apr 2003; Matthew Rickard <frogger@gentoo.org> gcc-3.2.2-r3.ebuild, + files/3.2.2/protector.patch: + Updated ProPolice to protector-3.2.2-5 + 31 Mar 2003; Matthew Rickard <frogger@gentoo.org> gcc-3.2.2-r3.ebuild: Moved ProPolice related files from $FILEDIR/3.2 to $FILESDIR/3.2.2 diff --git a/sys-devel/gcc/files/3.2.2/protector.patch b/sys-devel/gcc/files/3.2.2/protector.patch index dba0941458e3..4f86a0192a69 100644 --- a/sys-devel/gcc/files/3.2.2/protector.patch +++ b/sys-devel/gcc/files/3.2.2/protector.patch @@ -6,6 +6,23 @@ retrieving revision 1.1.1.12.2.1 diff -c -3 -p -r1.1.1.12 -r1.1.1.12.2.1 *** gcc/Makefile.in 2003/02/19 07:11:06 1.1.1.12 --- gcc/Makefile.in 2003/02/26 08:01:00 1.1.1.12.2.1 +*************** INSTALL_LIBGCC = install-libgcc +*** 358,364 **** + # Options to use when compiling libgcc2.a. + # + LIBGCC2_DEBUG_CFLAGS = -g +! LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED @inhibit_libc@ + + # Additional options to use when compiling libgcc2.a. + # Some targets override this to -isystem include +--- 358,364 ---- + # Options to use when compiling libgcc2.a. + # + LIBGCC2_DEBUG_CFLAGS = -g +! LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED @inhibit_libc@ -fno-stack-protector + + # Additional options to use when compiling libgcc2.a. + # Some targets override this to -isystem include *************** OBJS = alias.o bb-reorder.o bitmap.o bui *** 728,734 **** sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o stmt.o \ @@ -40,6 +57,23 @@ diff -c -3 -p -r1.1.1.12 -r1.1.1.12.2.1 # Defined in libgcc2.c, included only in the static library. LIB2FUNCS_ST = _eprintf _bb __gcc_bcmp +*************** toplev.o : toplev.c $(CONFIG_H) $(SYSTEM +*** 1360,1366 **** + ssa.h $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) halfpic.h \ + langhooks.h insn-flags.h options.h + $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ +! -DTARGET_NAME=\"$(target_alias)\" \ + -c $(srcdir)/toplev.c $(OUTPUT_OPTION) + main.o : main.c $(CONFIG_H) $(SYSTEM_H) toplev.h + +--- 1360,1366 ---- + ssa.h $(PARAMS_H) $(TM_P_H) reload.h dwarf2asm.h $(TARGET_H) halfpic.h \ + langhooks.h insn-flags.h options.h + $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ +! -DSTACK_PROTECTOR -DTARGET_NAME=\"$(target_alias)\" \ + -c $(srcdir)/toplev.c $(OUTPUT_OPTION) + main.o : main.c $(CONFIG_H) $(SYSTEM_H) toplev.h + Index: gcc/calls.c =================================================================== RCS file: /home/cvsroot/gcc/gcc/calls.c,v @@ -234,10 +268,10 @@ Index: gcc/expr.c =================================================================== RCS file: /home/cvsroot/gcc/gcc/expr.c,v retrieving revision 1.1.1.11 -retrieving revision 1.1.1.11.2.1 -diff -c -3 -p -r1.1.1.11 -r1.1.1.11.2.1 +retrieving revision 1.1.1.11.2.2 +diff -c -3 -p -r1.1.1.11 -r1.1.1.11.2.2 *** gcc/expr.c 2003/02/19 07:11:13 1.1.1.11 ---- gcc/expr.c 2003/02/26 08:01:01 1.1.1.11.2.1 +--- gcc/expr.c 2003/04/07 02:36:16 1.1.1.11.2.2 *************** Software Foundation, 59 Temple Place - S *** 45,50 **** --- 45,51 ---- @@ -346,6 +380,25 @@ diff -c -3 -p -r1.1.1.11 -r1.1.1.11.2.1 cst = (*data->constfun) (data->constfundata, data->offset, mode); emit_insn ((*genfun) (to1, cst)); +*************** force_operand (value, target) +*** 5474,5480 **** + && GET_CODE (XEXP (value, 0)) == PLUS + && GET_CODE (XEXP (XEXP (value, 0), 0)) == REG + && REGNO (XEXP (XEXP (value, 0), 0)) >= FIRST_VIRTUAL_REGISTER +! && REGNO (XEXP (XEXP (value, 0), 0)) <= LAST_VIRTUAL_REGISTER) + { + rtx temp = expand_simple_binop (GET_MODE (value), code, + XEXP (XEXP (value, 0), 0), op2, +--- 5478,5486 ---- + && GET_CODE (XEXP (value, 0)) == PLUS + && GET_CODE (XEXP (XEXP (value, 0), 0)) == REG + && REGNO (XEXP (XEXP (value, 0), 0)) >= FIRST_VIRTUAL_REGISTER +! && REGNO (XEXP (XEXP (value, 0), 0)) <= LAST_VIRTUAL_REGISTER +! && (!flag_propolice_protection +! || XEXP (XEXP (value, 0), 0) != virtual_stack_vars_rtx)) + { + rtx temp = expand_simple_binop (GET_MODE (value), code, + XEXP (XEXP (value, 0), 0), op2, *************** expand_expr (exp, target, tmode, modifie *** 7614,7620 **** /* If adding to a sum including a constant, @@ -355,7 +408,7 @@ diff -c -3 -p -r1.1.1.11 -r1.1.1.11.2.1 { rtx constant_term = const0_rtx; ---- 7618,7625 ---- +--- 7620,7627 ---- /* If adding to a sum including a constant, associate it to put the constant outside. */ if (GET_CODE (op1) == PLUS @@ -640,10 +693,10 @@ Index: gcc/libgcc2.c =================================================================== RCS file: /home/cvsroot/gcc/gcc/libgcc2.c,v retrieving revision 1.1.1.7 -retrieving revision 1.1.1.7.4.2 -diff -c -3 -p -r1.1.1.7 -r1.1.1.7.4.2 +retrieving revision 1.1.1.7.4.3 +diff -c -3 -p -r1.1.1.7 -r1.1.1.7.4.3 *** gcc/libgcc2.c 2002/12/18 00:55:44 1.1.1.7 ---- gcc/libgcc2.c 2003/03/17 13:22:49 1.1.1.7.4.2 +--- gcc/libgcc2.c 2003/04/07 02:03:19 1.1.1.7.4.3 *************** atexit (func_ptr func) *** 2050,2052 **** --- 2050,2151 ---- @@ -715,7 +768,7 @@ diff -c -3 -p -r1.1.1.7 -r1.1.1.7.4.2 + strncat(buf, __progname, bufsz-len-1); len = strlen(buf); + #endif + if (bufsz>len) {strncat(buf, message, bufsz-len-1); len = strlen(buf);} -+ if (bufsz>len) strncat(buf, func, bufsz-len-1); ++ if (bufsz>len) {strncat(buf, func, bufsz-len-1); len = strlen(buf);} + + /* print error message */ + write (STDERR_FILENO, buf+3, len-3); @@ -729,7 +782,7 @@ diff -c -3 -p -r1.1.1.7 -r1.1.1.7.4.2 + (void)strncpy(SyslogAddr.sun_path, _PATH_LOG, + sizeof(SyslogAddr.sun_path) - 1); + SyslogAddr.sun_path[sizeof(SyslogAddr.sun_path) - 1] = '\0'; -+ sendto(LogFile, buf, strlen(buf), 0, (struct sockaddr *)&SyslogAddr, ++ sendto(LogFile, buf, len, 0, (struct sockaddr *)&SyslogAddr, + sizeof(SyslogAddr)); + } + #endif diff --git a/sys-devel/gcc/gcc-3.2.2-r3.ebuild b/sys-devel/gcc/gcc-3.2.2-r3.ebuild index b3a487a1b6e6..372d73403917 100644 --- a/sys-devel/gcc/gcc-3.2.2-r3.ebuild +++ b/sys-devel/gcc/gcc-3.2.2-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.2-r3.ebuild,v 1.10 2003/04/01 04:33:50 frogger Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.2.2-r3.ebuild,v 1.11 2003/04/09 15:47:54 frogger Exp $ IUSE="static nls bootstrap java build" @@ -183,13 +183,12 @@ src_unpack() { epatch ${FILESDIR}/3.2.1/gcc32-strip-dotdot.patch epatch ${FILESDIR}/3.2.1/gcc32-athlon-alignment.patch - # ProPolice Stack Smashing protection + # ProPolice Stack Smashing protection - protector-3.2.2-5 epatch ${FILESDIR}/3.2.2/protector.patch cp ${FILESDIR}/3.2.2/protector.c ${WORKDIR}/${P}/gcc/ || die "protector.c not found" cp ${FILESDIR}/3.2.2/protector.h ${WORKDIR}/${P}/gcc/ || die "protector.h not found" epatch ${FILESDIR}/3.2.2/gcc-322-r3-propolice-version.patch - # GCC bugfixes ... epatch ${FILESDIR}/3.2.2/gcc32-pr7768.patch epatch ${FILESDIR}/3.2.2/gcc32-pr8213.patch diff --git a/sys-devel/gcc/manifest b/sys-devel/gcc/manifest index 7abcc2e11d41..d4dc324d8c89 100644 --- a/sys-devel/gcc/manifest +++ b/sys-devel/gcc/manifest @@ -12,11 +12,11 @@ MD5 b8162a884971199cc4a538d2e484cdfe gcc-3.1.1-r1.ebuild 9636 MD5 133b092cbfeff595b0b793eab0c13a2e gcc-3.2.2.ebuild 15339 MD5 5a4475fa7fe0b65b070ad173457878d5 gcc-2.95.3-r8.ebuild 9170 MD5 da9e936766a9c4650965f9edabbc618d gcc-3.2-r5.ebuild 13126 -MD5 114b3e5fb15c9c3fde1ed0219c7bee14 gcc-3.2.2-r3.ebuild 16075 +MD5 3620c509a420dd0d28db995802b7fcdc gcc-3.2.2-r3.ebuild 16075 MD5 396808683bbe6fe294fe6f803ec4e7a2 gcc-3.1-r8.ebuild 9803 MD5 4ca314ddb4dc31959140fa45137e4ec0 gcc-3.2.1-r6.ebuild 14406 MD5 31eaf707d3524543fefb3ff3d1f8af30 gcc-3.2.1-r1.ebuild 13025 -MD5 b3f0518d9871bdbb50ddc22dffcd19e2 ChangeLog 17658 +MD5 e148bc45734d6ed6b3413dac3aed5bfd ChangeLog 17658 MD5 d70bcc196f1d68275346f067efcb9373 files/cc 20 MD5 dcf3646d19d351cc4d95a8096c6eaf58 files/cpp 20 MD5 4a4be6eb294e00da7fef14ec597dcf13 files/digest-gcc-3.0.4-r6 128 |