vapier 15/08/30 05:28:48
Modified: 35_all_gcc51_config_arm.patch
40_all_gcc49_config_esp.patch README.Changelog
README.history
Log:
disable -fstack-check by default for arm targets since it miscompiles code
#518598
Revision Changes Path
1.2 src/patchsets/gcc/5.1.0/pie/35_all_gcc51_config_arm.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/35_all_gcc51_config_arm.patch?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/35_all_gcc51_config_arm.patch?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/35_all_gcc51_config_arm.patch?r1=1.1&r2=1.2
Index: 35_all_gcc51_config_arm.patch
===================================================================
RCS file:
/var/cvsroot/gentoo/src/patchsets/gcc/5.1.0/pie/35_all_gcc51_config_arm.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 35_all_gcc51_config_arm.patch 26 Apr 2015 17:18:46 -0000 1.1
+++ 35_all_gcc51_config_arm.patch 30 Aug 2015 05:28:48 -0000 1.2
@@ -5,7 +5,7 @@
--- 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
-@@ -2326,6 +2326,12 @@ extern const char *host_detect_local_cpu
+@@ -2326,6 +2326,14 @@ extern const char *host_detect_local_cpu
# define EXTRA_SPEC_FUNCTIONS BIG_LITTLE_CPU_SPEC_FUNCTIONS
#endif
@@ -14,6 +14,8 @@
+# define DRIVER_SELF_SPECS \
+ MCPU_MTUNE_NATIVE_SPECS, \
+ ESP_DRIVER_SELF_SPEC
++/* https://bugs.gentoo.org/518598 */
++# define ESP_NO_STACK_CHECK 1
+#else
+# define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS
+#endif
1.2 src/patchsets/gcc/5.1.0/pie/40_all_gcc49_config_esp.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/40_all_gcc49_config_esp.patch?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/40_all_gcc49_config_esp.patch?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/40_all_gcc49_config_esp.patch?r1=1.1&r2=1.2
Index: 40_all_gcc49_config_esp.patch
===================================================================
RCS file:
/var/cvsroot/gentoo/src/patchsets/gcc/5.1.0/pie/40_all_gcc49_config_esp.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 40_all_gcc49_config_esp.patch 26 Apr 2015 17:18:46 -0000 1.1
+++ 40_all_gcc49_config_esp.patch 30 Aug 2015 05:28:48 -0000 1.2
@@ -5,7 +5,7 @@
--- gcc/config/esp.h 2010-04-09 16:14:00.000000000 +0200
+++ gcc/config/esp.h 2012-06-23 01:00:31.248348491 +0200
-@@ -0,0 +1,127 @@
+@@ -0,0 +1,132 @@
+/* License terms see GNU GENERAL PUBLIC LICENSE Version 3.
+ * Version 20140512.1
+ * Magnus Granberg (Zorry) <[email protected]> */
@@ -52,10 +52,15 @@
+ /* This will add -fstack-protector-all if we don't have -nostdlib
-nodefaultlibs -fno-stack-protector -fstack-protector
+ -fstack-protector-all and we have EFAULT_SSP or EFAULT_PIE_SSP
defined. */
+ #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP )
++ #ifdef ESP_NO_STACK_CHECK
++ #define ESP_OPTIONS_STACK_CHECK_SPEC
++ #else
++ #define ESP_OPTIONS_STACK_CHECK_SPEC
"%{fstack-check|fstack-check=*:;: -fstack-check}"
++ #endif
+ #define ESP_OPTIONS_SSP_SPEC \
+
"%{nostdlib|ffreestanding|fno-stack-protector|fstack-protector| \
-+
fstack-protector-all|fstack-protector-strong:;:-fstack-protector-all} \
-+ %{fstack-check|fstack-check=*:;: -fstack-check}"
++
fstack-protector-all|fstack-protector-strong:;:-fstack-protector-all} " \
++ ESP_OPTIONS_STACK_CHECK_SPEC
+ #else
+ #define ESP_OPTIONS_SSP_SPEC ""
+ #endif
1.2 src/patchsets/gcc/5.1.0/pie/README.Changelog
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.Changelog?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.Changelog?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.Changelog?r1=1.1&r2=1.2
Index: README.Changelog
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/5.1.0/pie/README.Changelog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- README.Changelog 26 Apr 2015 17:18:46 -0000 1.1
+++ README.Changelog 30 Aug 2015 05:28:48 -0000 1.2
@@ -1,3 +1,10 @@
+0.6.4 Mike Frysinger <[email protected]>
+
+ #518598
+ * gcc/config/arm/elf.h (ESP_NO_STACK_CHECK): Define.
+ * gcc/config/esp.h (ESP_OPTIONS_SSP_SPEC): Do not add -fstack-check
+ when ESP_NO_STACK_CHECK is defined.
+
0.6.3 Magnus Granberg <[email protected]>
* gcc/configure Regenerated
1.2 src/patchsets/gcc/5.1.0/pie/README.history
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.history?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.history?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.1.0/pie/README.history?r1=1.1&r2=1.2
Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/5.1.0/pie/README.history,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- README.history 26 Apr 2015 17:18:46 -0000 1.1
+++ README.history 30 Aug 2015 05:28:48 -0000 1.2
@@ -1,3 +1,6 @@
+0.6.4 29 Aug 2015
+ U 35_all_gcc51_config_arm.patch
+ U 40_all_gcc49_config_esp.patch
0.6.3 26 Apr 2015
+ 01_all_gcc51_configure.patch
- 01_all_gcc49_configure.patch