aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg (Zorry) <zorry@gentoo.org>2010-04-25 17:24:07 +0200
committerMagnus Granberg (Zorry) <zorry@gentoo.org>2010-04-25 17:24:07 +0200
commit60f714a5f73d9ef28510f08dfc68b011338830b6 (patch)
tree469534ac189fe114e0994dbb4c1adf5c6b7ea016
parentUpdated pipatches to 0.4.1 in gcc 4.5.0 part2 (diff)
downloadhardened-gccpatchset-60f714a5f73d9ef28510f08dfc68b011338830b6.tar.gz
hardened-gccpatchset-60f714a5f73d9ef28510f08dfc68b011338830b6.tar.bz2
hardened-gccpatchset-60f714a5f73d9ef28510f08dfc68b011338830b6.zip
removed files in gcc 4.5.0
-rw-r--r--gcc-4.5.0/piepatch/21_all_gcc45_decl-tls-model.patch20
-rw-r--r--gcc-4.5.0/piepatch/35_all_gcc45_config_crtbegints.patch36
-rw-r--r--gcc-4.5.0/piepatch/40_all_gcc45_cp_lang-specs.h.patch30
-rw-r--r--gcc-4.5.0/piepatch/41_all_gcc45_objc_lang-specs.h.patch37
-rw-r--r--gcc-4.5.0/piepatch/42_all_gcc45_objcp_lang-specs.h.patch35
-rw-r--r--gcc-4.5.0/piepatch/60_all_gcc44_invoke.texi.patch2
-rw-r--r--gcc-4.5.0/piepatch/60_all_gcc45_invoke.texi.patch44
7 files changed, 1 insertions, 203 deletions
diff --git a/gcc-4.5.0/piepatch/21_all_gcc45_decl-tls-model.patch b/gcc-4.5.0/piepatch/21_all_gcc45_decl-tls-model.patch
deleted file mode 100644
index 09438a0..0000000
--- a/gcc-4.5.0/piepatch/21_all_gcc45_decl-tls-model.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-2009-06-13 Magnus Granberg <zorry@ume.nu>
-
- b.g.o #232601
- * gcc/varasm.c (decl_tls_model): Check flag_pic instead of flag_shlib.
-
---- gcc/varasm.c 2009-03-17 21:18:21.000000000 +0100
-+++ gcc/varasm.c 2009-04-29 03:10:09.000000000 +0200
-@@ -5607,7 +5607,11 @@
- bool is_local;
-
- is_local = targetm.binds_local_p (decl);
-- if (!flag_shlib)
-+ #ifdef ENABLE_ESP
-+ if (!flag_pic)
-+ #else
-+ if (!flag_shlib)
-+ #endif
- {
- if (is_local)
- kind = TLS_MODEL_LOCAL_EXEC;
diff --git a/gcc-4.5.0/piepatch/35_all_gcc45_config_crtbegints.patch b/gcc-4.5.0/piepatch/35_all_gcc45_config_crtbegints.patch
deleted file mode 100644
index f1e6532..0000000
--- a/gcc-4.5.0/piepatch/35_all_gcc45_config_crtbegints.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-2009-09-25 Magnus Granberg <zorry@ume.nu>
-
- * gcc/config/linux.h If ENABLE_CRTBEGINTS, -static and -pie use crtbegineTS.o.
- * gcc/config/rs6000/sysv4.h If ENABLE_CRTBEGINTS, -static and -pie use crtbegineTS.o.
-
---- gcc/config/linux.h 2009-04-10 01:23:07.000000000 +0200
-+++ gcc/config/linux.h 2009-09-08 04:08:06.000000000 +0200
-@@ -43,7 +43,11 @@
- object constructed before entering `main'. */
-
- #undef STARTFILE_SPEC
--#if defined HAVE_LD_PIE
-+#if defined (HAVE_LD_PIE) && defined (ENABLE_CRTBEGINTS)
-+#define STARTFILE_SPEC \
-+ "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} crti.o%s \
-+ %{static:%{pie:crtbeginTS.o%s;:crtbeginT.o%s}} %{!static:%{shared|pie:crtbeginS.o%s;:crtbegin.o%s}}"
-+#elif defined (HAVE_LD_PIE) && ! defined (ENABLE_CRTBEGINTS)
- #define STARTFILE_SPEC \
- "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
- crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
---- gcc/config/rs6000/sysv4.h 2009-04-10 01:23:07.000000000 +0200
-+++ gcc/config/rs6000/sysv4.h 2009-09-08 04:41:50.000000000 +0200
-@@ -883,7 +883,12 @@
- %{!mnewlib: %{pthread:-lpthread} %{shared:-lc} \
- %{!shared: %{profile:-lc_p} %{!profile:-lc}}}"
-
--#ifdef HAVE_LD_PIE
-+#if defined (HAVE_LD_PIE) && defined (ENABLE_CRTBEGINTS)
-+#define STARTFILE_LINUX_SPEC \
-+ "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
-+ %{mnewlib:ecrti.o%s;:crti.o%s} \
-+ {static:%{pie:crtbeginTS.o%s;:crtbeginT.o%s}} %{!static:%{shared|pie:crtbeginS.o%s;:crtbegin.o%s}}"
-+#elif defined (HAVE_LD_PIE) && ! defined (ENABLE_CRTBEGINTS)
- #define STARTFILE_LINUX_SPEC "\
- %{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
- %{mnewlib:ecrti.o%s;:crti.o%s} \
diff --git a/gcc-4.5.0/piepatch/40_all_gcc45_cp_lang-specs.h.patch b/gcc-4.5.0/piepatch/40_all_gcc45_cp_lang-specs.h.patch
deleted file mode 100644
index 091f443..0000000
--- a/gcc-4.5.0/piepatch/40_all_gcc45_cp_lang-specs.h.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-2009-06-18 Matthias Klose <doko@ubuntu.com>, Kees Cook <kees@outflux.net>
-
- LP #346126
- * gcc/cp/lang-specs.h compiler spec Add %(esp_options).
-
---- gcc/cp/lang-specs.h.orig 2009-03-23 01:21:54.000000000 +0100
-+++ gcc/cp/lang-specs.h 2009-03-23 01:22:16.000000000 +0100
-@@ -47,7 +47,7 @@
- %(cpp_options) %2 -o %{save-temps:%b.ii} %{!save-temps:%g.ii} \n}\
- cc1plus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.ii} %{!save-temps:%g.ii}}\
- %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\
-- %(cc1_options) %2 %{+e1*}\
-+ %(cc1_options) %(esp_options) %2 %{+e1*}\
- %{!fsyntax-only:-o %g.s %{!o*:--output-pch=%i.gch} %W{o*:--output-pch=%*}%V}}}}",
- CPLUSPLUS_CPP_SPEC, 0, 0},
- {"@c++",
-@@ -57,11 +57,11 @@
- %(cpp_options) %2 -o %{save-temps:%b.ii} %{!save-temps:%g.ii} \n}\
- cc1plus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.ii} %{!save-temps:%g.ii}}\
- %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\
-- %(cc1_options) %2 %{+e1*}\
-+ %(cc1_options) %(esp_options) %2 %{+e1*}\
- %{!fsyntax-only:%(invoke_as)}}}}",
- CPLUSPLUS_CPP_SPEC, 0, 0},
- {".ii", "@c++-cpp-output", 0, 0, 0},
- {"@c++-cpp-output",
- "%{!M:%{!MM:%{!E:\
-- cc1plus -fpreprocessed %i %(cc1_options) %2 %{+e*}\
-+ cc1plus -fpreprocessed %i %(cc1_options) %(esp_options) %2 %{+e*}\
- %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
diff --git a/gcc-4.5.0/piepatch/41_all_gcc45_objc_lang-specs.h.patch b/gcc-4.5.0/piepatch/41_all_gcc45_objc_lang-specs.h.patch
deleted file mode 100644
index 418217e..0000000
--- a/gcc-4.5.0/piepatch/41_all_gcc45_objc_lang-specs.h.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-2009-06-18 Matthias Klose <doko@ubuntu.com>, Kees Cook <kees@outflux.net>
-
- LP #346126
- * gcc/objc/lang-specs.h compiler spec Add %(esp_options).
-
---- gcc/objc/lang-specs.h 2009-03-23 01:21:54.000000000 +0100
-+++ gcc/objc/lang-specs.h 2009-03-23 01:22:16.000000000 +0100
-@@ -30,13 +30,13 @@
- %{traditional|ftraditional|traditional-cpp:\
- %eGNU Objective C no longer supports traditional compilation}\
- %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\
-- cc1obj -fpreprocessed %{save-temps:%b.mi} %{!save-temps:%g.mi} %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}\
-+ cc1obj -fpreprocessed %{save-temps:%b.mi} %{!save-temps:%g.mi} %(cc1_options) %(esp_options) %{print-objc-runtime-info} %{gen-decls}}\
- %{!save-temps:%{!no-integrated-cpp:\
-- cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}}\
-+ cc1obj %(cpp_unique_options) %(cc1_options) %(esp_options) %{print-objc-runtime-info} %{gen-decls}}}\
- %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
- {".mi", "@objc-cpp-output", 0, 0, 0},
- {"@objc-cpp-output",
-- "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
-+ "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %(esp_options) %{print-objc-runtime-info} %{gen-decls}\
- %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
- {"@objective-c-header",
- "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\
-@@ -45,10 +45,10 @@
- %{traditional|ftraditional|traditional-cpp:\
- %eGNU Objective C no longer supports traditional compilation}\
- %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\
-- cc1obj -fpreprocessed %b.mi %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
-+ cc1obj -fpreprocessed %b.mi %(cc1_options) %(esp_options) %{print-objc-runtime-info} %{gen-decls}\
- -o %g.s %{!o*:--output-pch=%i.gch}\
- %W{o*:--output-pch=%*}%V}\
- %{!save-temps:%{!no-integrated-cpp:\
-- cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
-+ cc1obj %(cpp_unique_options) %(cc1_options) %(esp_options) %{print-objc-runtime-info} %{gen-decls}\
- -o %g.s %{!o*:--output-pch=%i.gch}\
- %W{o*:--output-pch=%*}%V}}}}}", 0, 0, 0},
diff --git a/gcc-4.5.0/piepatch/42_all_gcc45_objcp_lang-specs.h.patch b/gcc-4.5.0/piepatch/42_all_gcc45_objcp_lang-specs.h.patch
deleted file mode 100644
index 50ab607..0000000
--- a/gcc-4.5.0/piepatch/42_all_gcc45_objcp_lang-specs.h.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-2009-06-18 Matthias Klose <doko@ubuntu.com>, Kees Cook <kees@outflux.net>
-
- LP #346126
- * gcc/objcp/lang-specs.h compiler spec Add %(esp_options).
-
---- gcc/objcp/lang-specs.h 2009-03-23 01:21:54.000000000 +0100
-+++ gcc/objcp/lang-specs.h 2009-03-23 01:22:16.000000000 +0100
-@@ -36,7 +36,7 @@
- %(cpp_options) %2 -o %{save-temps:%b.mii} %{!save-temps:%g.mii} \n}\
- cc1objplus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.mii} %{!save-temps:%g.mii}}\
- %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\
-- %(cc1_options) %2 %{+e1*}\
-+ %(cc1_options) %(esp_options) %2 %{+e1*}\
- -o %g.s %{!o*:--output-pch=%i.gch} %W{o*:--output-pch=%*}%V}}}",
- CPLUSPLUS_CPP_SPEC, 0, 0},
- {"@objective-c++",
-@@ -46,15 +46,15 @@
- %(cpp_options) %2 -o %{save-temps:%b.mii} %{!save-temps:%g.mii} \n}\
- cc1objplus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.mii} %{!save-temps:%g.mii}}\
- %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\
-- %(cc1_options) %2 %{+e1*}\
-+ %(cc1_options) %(esp_options) %2 %{+e1*}\
- %{!fsyntax-only:%(invoke_as)}}}}",
- CPLUSPLUS_CPP_SPEC, 0, 0},
- {".mii", "@objective-c++-cpp-output", 0, 0, 0},
- {"@objective-c++-cpp-output",
- "%{!M:%{!MM:%{!E:\
-- cc1objplus -fpreprocessed %i %(cc1_options) %2 %{+e*}\
-+ cc1objplus -fpreprocessed %i %(cc1_options) %(esp_options) %2 %{+e*}\
- %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
- {"@objc++-cpp-output",
- "%{!M:%{!MM:%{!E:\
-- cc1objplus -fpreprocessed %i %(cc1_options) %2 %{+e*}\
-+ cc1objplus -fpreprocessed %i %(cc1_options) %(esp_options) %2 %{+e*}\
- %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
diff --git a/gcc-4.5.0/piepatch/60_all_gcc44_invoke.texi.patch b/gcc-4.5.0/piepatch/60_all_gcc44_invoke.texi.patch
index c9621dd..899e2d5 100644
--- a/gcc-4.5.0/piepatch/60_all_gcc44_invoke.texi.patch
+++ b/gcc-4.5.0/piepatch/60_all_gcc44_invoke.texi.patch
@@ -1,4 +1,4 @@
-2009-09-11 Magnus Granberg <zorry@ume.nu>
+2009-09-11 Magnus Granberg <zorry@gentoo.org>
* gcc/doc/invoke.texi Add NOTES about -fstack-protector-all, -pie and
-fPIE/-fpie when --enable-esp is enable, this options is on by default.
diff --git a/gcc-4.5.0/piepatch/60_all_gcc45_invoke.texi.patch b/gcc-4.5.0/piepatch/60_all_gcc45_invoke.texi.patch
deleted file mode 100644
index 16eab7e..0000000
--- a/gcc-4.5.0/piepatch/60_all_gcc45_invoke.texi.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-2009-09-11 Magnus Granberg <zorry@ume.nu>
-
- * gcc/doc/invoke.texi Add NOTES about -fstack-protector-all, -pie and
- -fPIE/-fpie when --enable-esp is enable, this options is on by default.
-
---- gcc/doc/invoke.texi 2009-04-01 09:18:47.000000000 +0200
-+++ gcc/doc/invoke.texi 2009-06-18 14:08:38.000000000 +0200
-@@ -7134,6 +7134,11 @@
- @opindex fstack-protector-all
- Like @option{-fstack-protector} except that all functions are protected.
-
-+NOTE: When --enable-esp this option is enabled by default
-+for C, C++, ObjC, ObjC++, if neither @option{-fno-stack-protector}
-+or @option{-nostdlib} or @option{-nodefaultlibs} or
-+@option{-fstack-protector} are found.
-+
- @item -fsection-anchors
- @opindex fsection-anchors
- Try to reduce the number of symbolic address calculations by using
-@@ -7960,6 +7965,12 @@
- that were used to generate code (@option{-fpie}, @option{-fPIE},
- or model suboptions) when you specify this option.
-
-+NOTE: When --enable-esp this option is enabled by default
-+for C, C++, ObjC, ObjC++, if neither @option{-fno-pie} or @option{-fno-PIE}
-+or @option{-fno-pic} or @option{-fno-PIC} or @option{-nostdlib} or
-+@option{-nostartfiles} or @option{-shared} or @option{-pg} or @option{-p}
-+are found.
-+
- @item -rdynamic
- @opindex rdynamic
- Pass the flag @option{-export-dynamic} to the ELF linker, on targets
-@@ -15889,6 +15910,11 @@
- @code{__pie__} and @code{__PIE__}. The macros have the value 1
- for @option{-fpie} and 2 for @option{-fPIE}.
-
-+NOTE: When --enable-esp this option is enabled by default
-+for C, C++, ObjC, ObjC++, if neither @option{-fno-pie} or @option{-fno-PIE}
-+or @option{-fno-pic} or @option{-fno-PIC} or @option{-nostdlib} or
-+@option{-nostartfiles} or @option{-shared} are found.
-+
- @item -fno-jump-tables
- @opindex fno-jump-tables
- Do not use jump tables for switch statements even where it would be