aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2013-04-01 02:05:18 +0200
committerMagnus Granberg <zorry@gentoo.org>2013-04-01 02:05:18 +0200
commit6f5e4b98cc380044417dec3a4c5aa461e92d2a47 (patch)
tree9a38a185fc5a8427b723e0dfa3e08bb55c390641 /gcc-4.8.0
parentadd mips support for gcc 4.8 (diff)
downloadhardened-gccpatchset-6f5e4b98cc380044417dec3a4c5aa461e92d2a47.tar.gz
hardened-gccpatchset-6f5e4b98cc380044417dec3a4c5aa461e92d2a47.tar.bz2
hardened-gccpatchset-6f5e4b98cc380044417dec3a4c5aa461e92d2a47.zip
commit what gose in to gcc 4.8 piepatchset 0.5.5 in tree
Diffstat (limited to 'gcc-4.8.0')
-rw-r--r--gcc-4.8.0/piepatch/01_all_gcc48_configure.patch124
-rw-r--r--gcc-4.8.0/piepatch/05_all_gcc48_gcc.c.patch25
-rw-r--r--gcc-4.8.0/piepatch/33_all_gcc48_config_rs6000.patch47
-rw-r--r--gcc-4.8.0/piepatch/34_all_gcc48_config_i386.patch56
-rw-r--r--gcc-4.8.0/piepatch/35_all_gcc48_config_arm.patch34
-rw-r--r--gcc-4.8.0/piepatch/36_all_gcc48_config_mips.patch23
-rw-r--r--gcc-4.8.0/piepatch/37_all_gcc48_config_ia64.patch30
-rw-r--r--gcc-4.8.0/piepatch/40_all_gcc48_config_esp.patch2
-rw-r--r--gcc-4.8.0/piepatch/README4
-rw-r--r--gcc-4.8.0/piepatch/README.Changelog24
-rw-r--r--gcc-4.8.0/piepatch/README.history19
11 files changed, 377 insertions, 11 deletions
diff --git a/gcc-4.8.0/piepatch/01_all_gcc48_configure.patch b/gcc-4.8.0/piepatch/01_all_gcc48_configure.patch
index 47a1a05..1d3b429 100644
--- a/gcc-4.8.0/piepatch/01_all_gcc48_configure.patch
+++ b/gcc-4.8.0/piepatch/01_all_gcc48_configure.patch
@@ -1,3 +1,111 @@
+2013-04-01 Magnus Granberg <zorry@gentoo.org>
+
+ * configure.ac Add --enable-esp. Add -fno-stack-protector
+ to stage1_cflags.
+ * configure Regenerated
+ * gcc/configure.ac Add --enable-esp and define ENABLE_ESP.
+ Check if we support crtbeginP and define ENABLE_CRTBEGINP.
+ * gcc/configure Regenerated
+
+--- a/configure.ac 2011-11-29 22:36:43.000000000 +0100
++++ b/configure.ac 2011-12-07 23:29:26.125712475 +0100
+@@ -419,6 +419,26 @@ if test "${ENABLE_LIBADA}" != "yes" ; th
+ noconfigdirs="$noconfigdirs gnattools"
+ fi
+
++# Check whether --enable-esp was given and target have the support.
++AC_ARG_ENABLE([esp],
++[AS_HELP_STRING([--enable-esp],
++ [Enable Stack protector and Position independent executable as
++ default if we have suppot for it when compiling
++ and link with -z relro and -z now as default.
++ Linux targets supported i*86, x86_64, x32,
++ powerpc, powerpc64, ia64, arm and mips.])],
++[
++ case $target in
++ i?86*-*-linux* | x86_64-*-linux* | powerpc*-*-linux* | mips-*-linux* | arm*-*-linux* | ia64-*-linux*)
++ enable_esp=yes
++ ;;
++ *)
++ AC_MSG_WARN([*** --enable-esp is not supported on this $target target.])
++ ;;
++ esac
++])
++AC_SUBST([enable_esp])
++
+ AC_ARG_ENABLE(libssp,
+ [AS_HELP_STRING([--enable-libssp], [build libssp directory])],
+ ENABLE_LIBSSP=$enableval,
+@@ -3211,6 +3230,11 @@ if test "$GCC" = yes -a "$ENABLE_BUILD_W
+ CFLAGS="$saved_CFLAGS"
+ fi
+
++# Disable -fstack-protector on stage1
++if test x$enable_esp = xyes; then
++ stage1_cflags="$stage1_cflags -fno-stack-protector"
++fi
++
+ AC_SUBST(stage1_cflags)
+
+ # Enable --enable-checking in stage1 of the compiler.
+--- a/gcc/configure.ac 2011-11-18 11:52:32.000000000 +0100
++++ b/gcc/configure.ac 2012-10-02 17:39:15.649526241 +0200
+@@ -5130,6 +5237,55 @@ if test x"${LINKER_HASH_STYLE}" != x; th
+ [The linker hash style])
+ fi
+
++# --------------
++# Esp checks
++# --------------
++
++# Check whether --enable-esp was given and target have the support.
++AC_ARG_ENABLE([esp],
++[AS_HELP_STRING([--enable-esp],
++ [Enable Stack protector and Position independent executable as
++ default if we have suppot for it when compiling
++ and link with -z now as default.
++ Linux targets supported i*86, x86_64, x32,
++ powerpc, powerpc64, ia64, arm and mips.])],
++ enable_esp=$enableval,
++ enable_esp=no)
++if test $enable_esp = yes ; then
++ AC_MSG_CHECKING(if $target support esp)
++ case "$target" in
++ i?86*-*-linux* | x86_64-*-linux* | powerpc*-*-linux* | mips-*-linux* | arm*-*-linux* | ia64-*-linux*)
++ enable_esp=yes
++ AC_DEFINE(ENABLE_ESP, 1,
++ [Define if your target support esp and you have enable it.])
++ ;;
++ *)
++ enable_esp=no
++ ;;
++ esac
++AC_MSG_RESULT($enable_esp)
++fi
++AC_SUBST([enable_esp])
++if test $enable_esp = yes ; then
++ AC_MSG_CHECKING(checking for crtbeginP.o support)
++ if test x$enable_esp = xyes ; then
++ case "$target" in
++ ia64*-*-linux*)
++ enable_crtbeginP=no ;;
++ *-*-linux*)
++ if test x$gcc_cv_ld_pie = xyes && test x$lt_cv_prog_compiler_static_works = xyes; then
++ enable_crtbeginP=yes
++ AC_DEFINE(ENABLE_CRTBEGINP, 1,
++ [Define if your compiler will support crtbeginP.])
++ fi
++ ;;
++ *) enable_crtbeginP=no ;;
++ esac
++ fi
++ AC_MSG_RESULT($enable_crtbeginP)
++fi
++AC_SUBST([enable_crtbeginP])
++
+ # Configure the subdirectories
+ # AC_CONFIG_SUBDIRS($subdirs)
+
--- a/configure 2013-02-05 23:36:20.000000000 +0100
+++ b/configure 2013-02-12 01:59:04.000000000 +0100
@@ -670,6 +670,7 @@
@@ -22,9 +130,9 @@
--enable-libada build libada directory
+ --enable-esp Enable Stack protector and Position independent
+ executable as default if we have suppot for it when
-+ compiling and link with -z relro and -z now as
-+ default. Linux targets supported i*86, x86_64, x32,
-+ powerpc, powerpc64, ia64 and arm.
++ compiling and link with and -z now as default.
++ Linux targets supported i*86, x86_64, x32,
++ powerpc, powerpc64, ia64, arm and mips.
--enable-libssp build libssp directory
--disable-libstdcxx do not build libstdc++-v3 directory
--enable-static-libjava[=ARG]
@@ -37,7 +145,7 @@
+if test "${enable_esp+set}" = set; then :
+ enableval=$enable_esp;
+ case $target in
-+ i?86*-*-linux* | x86_64-*-linux* | powerpc-*-linux* | powerpc64-*-linux* | arm*-*-linux* | ia64-*-linux*)
++ i?86*-*-linux* | x86_64-*-linux* | powerpc*-*-linux* | mips*-*-linux* | arm*-*-linux* | ia64-*-linux*)
+ enable_esp=yes
+ ;;
+ *)
@@ -90,9 +198,9 @@
disable libquadmath support for Fortran
+ --enable-esp Enable Stack protector and Position independent
+ executable as default if we have suppot for it when
-+ compiling and link with -z relro and -z now as
-+ default. Linux targets supported i*86, x86_64, x32,
-+ powerpc, powerpc64, ia64 and arm.
++ compiling and link with -z now as default.
++ Linux targets supported i*86, x86_64, x32,
++ powerpc, powerpc64, ia64, arm and mips.
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -116,7 +224,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $target support esp" >&5
+$as_echo_n "checking if $target support esp... " >&6; }
+ case "$target" in
-+ i?86*-*-linux* | x86_64-*-linux* | powerpc-*-linux* | powerpc64-*-linux* | arm*-*-linux* | ia64-*-linux*)
++ i?86*-*-linux* | x86_64-*-linux* | powerpc*-*-linux* | mips*-*-linux* | arm*-*-linux* | ia64-*-linux*)
+ enable_esp=yes
+
+$as_echo "#define ENABLE_ESP 1" >>confdefs.h
diff --git a/gcc-4.8.0/piepatch/05_all_gcc48_gcc.c.patch b/gcc-4.8.0/piepatch/05_all_gcc48_gcc.c.patch
new file mode 100644
index 0000000..b92607b
--- /dev/null
+++ b/gcc-4.8.0/piepatch/05_all_gcc48_gcc.c.patch
@@ -0,0 +1,25 @@
+2013-03-24 Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/gcc.c include esp.h
+ static const char *cc1_spec We set that in esp.h if ENABLE_ESP.
+
+--- gcc/gcc.c 2010-01-21 10:29:30.000000000 -0500
++++ gcc/gcc.c 2010-01-29 23:29:16.000000000 -0500
+@@ -44,6 +44,7 @@
+ #include "opts.h"
+ #include "params.h"
+ #include "vec.h"
++#include "config/esp.h" /* for --enable-esp support */
+ #include "filenames.h"
+
+ /* By default there is no special suffix for target executables. */
+@@ -822,7 +823,9 @@
+
+ static const char *asm_debug;
+ static const char *cpp_spec = CPP_SPEC;
++#ifndef ENABLE_ESP
+ static const char *cc1_spec = CC1_SPEC;
++#endif
+ static const char *cc1plus_spec = CC1PLUS_SPEC;
+ static const char *link_gcc_c_sequence_spec = LINK_GCC_C_SEQUENCE_SPEC;
+ static const char *link_ssp_spec = LINK_SSP_SPEC;
diff --git a/gcc-4.8.0/piepatch/33_all_gcc48_config_rs6000.patch b/gcc-4.8.0/piepatch/33_all_gcc48_config_rs6000.patch
new file mode 100644
index 0000000..25e704f
--- /dev/null
+++ b/gcc-4.8.0/piepatch/33_all_gcc48_config_rs6000.patch
@@ -0,0 +1,47 @@
+2013-03-26 Peter S. Mazinger <ps.m@gmx.net>, Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/config/rs6000/linux64.h (ASM_SPEC32): Change %{fpic:-K PIC} %{fPIC:-K PIC}
+ to %{fpic|fPIC|fpie|fPIE:-K PIC}
+ * gcc/config/rs6000/sysv4.h (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPECS.
+ (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+
+--- a/gcc/config/rs6000/linux64.h.psm 2009-04-10 01:23:07.000000000 +0200
++++ b/gcc/config/rs6000/linux64.h 2009-09-23 12:34:26.000000000 +0200
+@@ -162,7 +162,7 @@
+ #endif
+
+ #define ASM_SPEC32 "-a32 \
+-%{mrelocatable} %{mrelocatable-lib} %{fpic:-K PIC} %{fPIC:-K PIC} \
++%{mrelocatable} %{mrelocatable-lib} %{fpic|fPIC|fpie|fPIE:-K PIC} \
+ %{memb} %{!memb: %{msdata=eabi: -memb}} \
+ %{!mlittle: %{!mlittle-endian: %{!mbig: %{!mbig-endian: \
+ %{mcall-freebsd: -mbig} \
+--- a/gcc/config/rs6000/sysv4.h 2013-01-10 21:38:27.000000000 +0100
++++ b/gcc/config/rs6000/sysv4.h 2013-03-26 01:30:33.257003189 +0100
+@@ -627,8 +627,13 @@ extern int fixuplabelno;
+
+ #define LINK_OS_DEFAULT_SPEC ""
+
++#ifdef ENABLE_ESP
++#define DRIVER_SELF_SPECS "%{mfpu=none: %<mfpu=* \
++ %<msingle-float %<mdouble-float}", ESP_DRIVER_SELF_SPECS
++#else
+ #define DRIVER_SELF_SPECS "%{mfpu=none: %<mfpu=* \
+ %<msingle-float %<mdouble-float}"
++#endif
+
+ /* Override rs6000.h definition. */
+ #undef CPP_SPEC
+@@ -933,7 +938,11 @@ ncrtn.o%s"
+ { "cpp_os_openbsd", CPP_OS_OPENBSD_SPEC }, \
+ { "cpp_os_default", CPP_OS_DEFAULT_SPEC }, \
+ { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }, \
+- SUBSUBTARGET_EXTRA_SPECS
++ SUBSUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
++
++#ifndef ENABLE_ESP
++#define ESP_EXTRA_SPECS
++#endif
+
+ #define SUBSUBTARGET_EXTRA_SPECS
+
diff --git a/gcc-4.8.0/piepatch/34_all_gcc48_config_i386.patch b/gcc-4.8.0/piepatch/34_all_gcc48_config_i386.patch
new file mode 100644
index 0000000..9f0f7a3
--- /dev/null
+++ b/gcc-4.8.0/piepatch/34_all_gcc48_config_i386.patch
@@ -0,0 +1,56 @@
+2013-03-24 Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/config/i386/gnu-user-common.h (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPEC.
+ * gcc/config/i386/gnu-user.h (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+ * gcc/config/i386/i386.h (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+
+--- a/gcc/config/i386/gnu-user-common.h 2013-01-10 21:38:27.000000000 +0100
++++ b/gcc/config/i386/gnu-user-common.h 2013-02-14 00:51:44.689637605 +0100
+@@ -70,3 +70,7 @@ along with GCC; see the file COPYING3.
+
+ /* Static stack checking is supported by means of probes. */
+ #define STACK_CHECK_STATIC_BUILTIN 1
++
++#ifdef ENABLE_ESP
++#define DRIVER_SELF_SPECS ESP_DRIVER_SELF_SPEC
++#endif
+--- a/gcc/config/i386/gnu-user.h 2011-05-05 14:32:50.000000000 +0200
++++ b/gcc/config/i386/gnu-user.h 2012-07-09 14:28:38.726289455 +0200
+@@ -93,9 +93,16 @@ along with GCC; see the file COPYING3.
+ "--32 %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}"
+
+ #undef SUBTARGET_EXTRA_SPECS
++#ifdef ENABLE_ESP
+ #define SUBTARGET_EXTRA_SPECS \
+ { "link_emulation", GNU_USER_LINK_EMULATION },\
+- { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
++ { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }, \
++ ESP_EXTRA_SPECS
++#else
++#define SUBTARGET_EXTRA_SPECS \
++ { "link_emulation", GNU_USER_LINK_EMULATION },\
++ { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
++#endif
+
+ #undef LINK_SPEC
+ #define LINK_SPEC "-m %(link_emulation) %{shared:-shared} \
+--- a/gcc/config/i386/i386.h 2011-11-24 23:11:12.000000000 +0100
++++ b/gcc/config/i386/i386.h 2012-07-09 14:21:24.575276517 +0200
+@@ -617,13 +617,16 @@ enum target_cpu_default
+ Do not define this macro if it does not need to do anything. */
+
+ #ifndef SUBTARGET_EXTRA_SPECS
++#ifdef ENABLE_ESP
++#define SUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
++#else
+ #define SUBTARGET_EXTRA_SPECS
+ #endif
++#endif
+
+ #define EXTRA_SPECS \
+ { "cc1_cpu", CC1_CPU_SPEC }, \
+ SUBTARGET_EXTRA_SPECS
+-
+
+ /* Set the value of FLT_EVAL_METHOD in float.h. When using only the
+ FPU, assume that the fpcw is set to extended precision; when using
diff --git a/gcc-4.8.0/piepatch/35_all_gcc48_config_arm.patch b/gcc-4.8.0/piepatch/35_all_gcc48_config_arm.patch
new file mode 100644
index 0000000..e50e78e
--- /dev/null
+++ b/gcc-4.8.0/piepatch/35_all_gcc48_config_arm.patch
@@ -0,0 +1,34 @@
+2013-04-01 Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/config/arm/arm.h (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+ (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPEC.
+
+--- a/gcc/config/arm/arm.h 2013-01-15 17:17:28.000000000 +0100
++++ b/gcc/config/arm/arm.h 2013-02-18 22:45:18.327284928 +0100
+@@ -226,8 +226,12 @@ extern void (*arm_lang_output_object_att
+ SUBTARGET_EXTRA_SPECS
+
+ #ifndef SUBTARGET_EXTRA_SPECS
++#ifdef ENABLE_ESP
++#define SUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
++#else
+ #define SUBTARGET_EXTRA_SPECS
+ #endif
++#endif
+
+ #ifndef SUBTARGET_CPP_SPEC
+ #define SUBTARGET_CPP_SPEC ""
+@@ -2326,6 +2326,11 @@ extern const char *host_detect_local_cpu
+ # define MCPU_MTUNE_NATIVE_SPECS ""
+ #endif
+
+-#define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS
+-
++#ifdef ENABLE_ESP
++# define DRIVER_SELF_SPECS \
++ MCPU_MTUNE_NATIVE_SPECS, \
++ ESP_DRIVER_SELF_SPEC
++#else
++# define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS
++#endif
+ #endif /* ! GCC_ARM_H */
diff --git a/gcc-4.8.0/piepatch/36_all_gcc48_config_mips.patch b/gcc-4.8.0/piepatch/36_all_gcc48_config_mips.patch
index 74b856a..a924f85 100644
--- a/gcc-4.8.0/piepatch/36_all_gcc48_config_mips.patch
+++ b/gcc-4.8.0/piepatch/36_all_gcc48_config_mips.patch
@@ -1,3 +1,9 @@
+2013-04-01 Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/config/mips/gnu-user.h (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPEC.
+ * gcc/config/mips/gnu-user64.h (DRIVER_SELF_SPECS): Add ESP_DRIVER_SELF_SPEC.
+ * gcc/config/mips/mips.h (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+
--- a/gcc/config/mips/gnu-user.h 2013-01-10 21:38:27.000000000 +0100
+++ b/gcc/config/mips/gnu-user.h 2013-03-10 22:37:33.743176388 +0100
@@ -125,9 +125,16 @@ extern const char *host_detect_local_cpu
@@ -36,3 +42,20 @@
#undef GNU_USER_TARGET_LINK_SPEC
#define GNU_USER_TARGET_LINK_SPEC "\
+--- a/gcc/config/mips/mips.h 2013-01-10 21:38:27.000000000 +0100
++++ b/gcc/config/mips/mips.h 2013-03-24 16:59:01.474513910 +0100
+@@ -1197,9 +1197,13 @@ struct mips_cpu_info {
+ SUBTARGET_EXTRA_SPECS
+
+ #ifndef SUBTARGET_EXTRA_SPECS
++#ifdef ENABLE_ESP
++#define SUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
++#else
+ #define SUBTARGET_EXTRA_SPECS
+ #endif
+-
++#endif
++
+ #define DBX_DEBUGGING_INFO 1 /* generate stabs (OSF/rose) */
+ #define DWARF2_DEBUGGING_INFO 1 /* dwarf2 debugging info */
+
diff --git a/gcc-4.8.0/piepatch/37_all_gcc48_config_ia64.patch b/gcc-4.8.0/piepatch/37_all_gcc48_config_ia64.patch
new file mode 100644
index 0000000..bae8914
--- /dev/null
+++ b/gcc-4.8.0/piepatch/37_all_gcc48_config_ia64.patch
@@ -0,0 +1,30 @@
+2013-04-01 Magnus Granberg <zorry@gentoo.org>
+
+ * gcc/config/ia64/linux.h Define DRIVER_SELF_SPECS ESP_DRIVER_SELF_SPECS.
+ * gcc/config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Add ESP_EXTRA_SPECS.
+
+--- a/gcc/config/ia64/linux.h 2013-01-10 21:38:27.000000000 +0100
++++ b/gcc/config/ia64/linux.h 2013-03-16 22:50:10.363049291 +0100
+@@ -88,3 +88,7 @@ do { \
+
+ /* Define this to be nonzero if static stack checking is supported. */
+ #define STACK_CHECK_STATIC_BUILTIN 1
++
++#ifdef ENABLE_ESP
++#define DRIVER_SELF_SPECS ESP_DRIVER_SELF_SPECS
++#endif
+--- a/gcc/config/ia64/ia64.h 2013-01-10 21:38:27.000000000 +0100
++++ b/gcc/config/ia64/ia64.h 2013-03-26 02:03:21.052061828 +0100
+@@ -41,8 +41,12 @@ do { \
+ } while (0)
+
+ #ifndef SUBTARGET_EXTRA_SPECS
++#ifdef ENABLE_ESP
++#define SUBTARGET_EXTRA_SPECS ESP_EXTRA_SPECS
++#else
+ #define SUBTARGET_EXTRA_SPECS
+ #endif
++#endif
+
+ #define EXTRA_SPECS \
+ { "asm_extra", ASM_EXTRA_SPEC }, \
diff --git a/gcc-4.8.0/piepatch/40_all_gcc48_config_esp.patch b/gcc-4.8.0/piepatch/40_all_gcc48_config_esp.patch
index cbb594e..83630f2 100644
--- a/gcc-4.8.0/piepatch/40_all_gcc48_config_esp.patch
+++ b/gcc-4.8.0/piepatch/40_all_gcc48_config_esp.patch
@@ -1,7 +1,7 @@
2013-02-14 Magnus Granberg <zorry@gentoo.org>
* gcc/esp.h New file to support --enable-esp
- Version 20120214.1
+ Version 20130214.1
--- gcc/config/esp.h 2010-04-09 16:14:00.000000000 +0200
+++ gcc/config/esp.h 2012-06-23 01:00:31.248348491 +0200
diff --git a/gcc-4.8.0/piepatch/README b/gcc-4.8.0/piepatch/README
index f322ab8..5d0bc13 100644
--- a/gcc-4.8.0/piepatch/README
+++ b/gcc-4.8.0/piepatch/README
@@ -7,7 +7,7 @@ http://forums.gentoo.org/viewtopic-t-668885.html. I joined the thread and starte
We started with the pieworld code from kevquinn's overlay. The PIE and minispecs part hit the tree later on.
With GCC 4.4.0 I was willing to do some code cleanup, use built-in specs and add it as --enable-esp in the
-configure command line.
+configure command line. On GCC 4.8.0 we use DRIVER_SELF_SPECS for the specs.
Thank you all:
Kevin K. Quinn, Peter S. Mazinger, Natanael Copa, Alexander Gabert, Solar, PaX Team, SpanKY, Xake, Dwokfur,
@@ -15,4 +15,4 @@ KernelOfTruth, SteveL, nixnut, Hopeless, forsaken1, XioXous, obrut<-, mv, qjim,
unk, neuron, alexxy, hellboi64, likewhoa, g0rg0n, costel78, polsas, 7v5w7go9ub0o, uberpinguin, Naib, cilly,
bonsaikitten, kerframil, agaffney, Gordon Malm, blueness, Matthias Klose, Kees Cook, mentor, Anarchy,
devurandom and everyone else for helping to test, suggestions, fixes and anything else we have missed.
-/2009-00-09 Magnus Grenberg (Zorry) <zorry@ume.nu>
+/2013-03-31 Magnus Grenberg (Zorry) <zorry@gentoo.org>
diff --git a/gcc-4.8.0/piepatch/README.Changelog b/gcc-4.8.0/piepatch/README.Changelog
index 009e128..b73e521 100644
--- a/gcc-4.8.0/piepatch/README.Changelog
+++ b/gcc-4.8.0/piepatch/README.Changelog
@@ -1,3 +1,27 @@
+0.5.5 Magnus Granberg <zorry@gentoo.org>
+
+ * configure.ac Add mips
+ * configure Regenerated
+ * gcc/configure.ac Clean up the checksand add mips.
+ * gcc/configure Regenerated
+ * gcc/config.in Remove ENABLE_ESP_SSP
+ * gcc/Makefile.in Bumped for 4.8.0 release
+ * gcc/gcc.c Remove ESP_EXTRA_SPECS and
+ ESP_COMMAND_OPTIONS_SPEC
+ * gcc/config/rs6000/sysv4.h Add ESP_DRIVER_SELF_SPECS
+ and ESP_EXTRA_SPECS
+ * gcc/config/i386/gnu-user-common.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/i386/gnu-user.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/i386/i386.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/arm/arm.h Add ESP_DRIVER_SELF_SPECS and
+ ESP_EXTRA_SPECS
+ * gcc/config/mips/gnu-user.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/mips/gnu-user64.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/mips/mips.h Add ESP_EXTRA_SPECS
+ * gcc/config/ia64/linux.h Add ESP_DRIVER_SELF_SPECS
+ * gcc/config/ia64/ia64.h Add ESP_EXTRA_SPECS
+ * gcc/config/esp.h Bump for ESP_DRIVER_SELF_SPECS support
+
0.5.4 Magnus Granberg <zorry@gentoo.org>
#436924
diff --git a/gcc-4.8.0/piepatch/README.history b/gcc-4.8.0/piepatch/README.history
index 82b2ee3..5a2a379 100644
--- a/gcc-4.8.0/piepatch/README.history
+++ b/gcc-4.8.0/piepatch/README.history
@@ -1,3 +1,22 @@
+0.5.5 31 Mar 2013
+ - 01_all_gcc47_configure.patch
+ + 01_all_gcc48_configure.patch
+ - 02_all_gcc47_config.in.patch
+ + 02_all_gcc48_config.in.patch
+ - 03_all_gcc47_Makefile.in.patch
+ + 03_all_gcc48_Makefile.in.patch
+ - 05_all_gcc47_gcc.c.patch
+ - 05_all_gcc48_gcc.c.patch
+ - 33_all_gcc46_config_rs6000_linux64.h.patch
+ + 33_all_gcc48_config_rs6000.patch
+ - 34_all_gcc47_config_all_gnu_user.patch
+ + 34_all_gcc48_config_i386.patch
+ + 35_all_gcc48_config_arm.patch
+ + 36_all_gcc48_config_mips.patch
+ + 37_all_gcc48_config_ia64.patch
+ - 35_all_gcc47_config_esp.h.patch
+ - 35_all_gcc48_config_esp.h.patch
+ U README
0.5.4 02 Oct 2012
U 01_all_gcc47_configure.patch
+ 01_all_gcc47_configure.ac.patch