1 |
vapier 15/08/30 05:28:48 |
2 |
|
3 |
Modified: 35_all_gcc48_config_arm.patch |
4 |
40_all_gcc49_config_esp.patch README.Changelog |
5 |
README.history |
6 |
Log: |
7 |
disable -fstack-check by default for arm targets since it miscompiles code #518598 |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 src/patchsets/gcc/4.9.3/pie/35_all_gcc48_config_arm.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/35_all_gcc48_config_arm.patch?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/35_all_gcc48_config_arm.patch?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/35_all_gcc48_config_arm.patch?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: 35_all_gcc48_config_arm.patch |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.9.3/pie/35_all_gcc48_config_arm.patch,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- 35_all_gcc48_config_arm.patch 2 Jul 2015 03:13:34 -0000 1.1 |
23 |
+++ 35_all_gcc48_config_arm.patch 30 Aug 2015 05:28:48 -0000 1.2 |
24 |
@@ -5,7 +5,7 @@ |
25 |
|
26 |
--- a/gcc/config/arm/arm.h 2013-01-15 17:17:28.000000000 +0100 |
27 |
+++ b/gcc/config/arm/arm.h 2013-02-18 22:45:18.327284928 +0100 |
28 |
-@@ -2326,6 +2326,11 @@ extern const char *host_detect_local_cpu |
29 |
+@@ -2326,6 +2326,13 @@ extern const char *host_detect_local_cpu |
30 |
# define MCPU_MTUNE_NATIVE_SPECS "" |
31 |
#endif |
32 |
|
33 |
@@ -15,6 +15,8 @@ |
34 |
+# define DRIVER_SELF_SPECS \ |
35 |
+ MCPU_MTUNE_NATIVE_SPECS, \ |
36 |
+ ESP_DRIVER_SELF_SPEC |
37 |
++/* https://bugs.gentoo.org/518598 */ |
38 |
++# define ESP_NO_STACK_CHECK 1 |
39 |
+#else |
40 |
+# define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS |
41 |
+#endif |
42 |
|
43 |
|
44 |
|
45 |
1.2 src/patchsets/gcc/4.9.3/pie/40_all_gcc49_config_esp.patch |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/40_all_gcc49_config_esp.patch?rev=1.2&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/40_all_gcc49_config_esp.patch?rev=1.2&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/40_all_gcc49_config_esp.patch?r1=1.1&r2=1.2 |
50 |
|
51 |
Index: 40_all_gcc49_config_esp.patch |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.9.3/pie/40_all_gcc49_config_esp.patch,v |
54 |
retrieving revision 1.1 |
55 |
retrieving revision 1.2 |
56 |
diff -u -r1.1 -r1.2 |
57 |
--- 40_all_gcc49_config_esp.patch 2 Jul 2015 03:13:34 -0000 1.1 |
58 |
+++ 40_all_gcc49_config_esp.patch 30 Aug 2015 05:28:48 -0000 1.2 |
59 |
@@ -5,7 +5,7 @@ |
60 |
|
61 |
--- gcc/config/esp.h 2010-04-09 16:14:00.000000000 +0200 |
62 |
+++ gcc/config/esp.h 2012-06-23 01:00:31.248348491 +0200 |
63 |
-@@ -0,0 +1,127 @@ |
64 |
+@@ -0,0 +1,132 @@ |
65 |
+/* License terms see GNU GENERAL PUBLIC LICENSE Version 3. |
66 |
+ * Version 20140512.1 |
67 |
+ * Magnus Granberg (Zorry) <zorry@g.o> */ |
68 |
@@ -52,10 +52,15 @@ |
69 |
+ /* This will add -fstack-protector-all if we don't have -nostdlib -nodefaultlibs -fno-stack-protector -fstack-protector |
70 |
+ -fstack-protector-all and we have EFAULT_SSP or EFAULT_PIE_SSP defined. */ |
71 |
+ #if defined ( EFAULT_SSP ) || defined ( EFAULT_PIE_SSP ) |
72 |
++ #ifdef ESP_NO_STACK_CHECK |
73 |
++ #define ESP_OPTIONS_STACK_CHECK_SPEC |
74 |
++ #else |
75 |
++ #define ESP_OPTIONS_STACK_CHECK_SPEC "%{fstack-check|fstack-check=*:;: -fstack-check}" |
76 |
++ #endif |
77 |
+ #define ESP_OPTIONS_SSP_SPEC \ |
78 |
+ "%{nostdlib|ffreestanding|fno-stack-protector|fstack-protector| \ |
79 |
-+ fstack-protector-all|fstack-protector-strong:;:-fstack-protector-all} \ |
80 |
-+ %{fstack-check|fstack-check=*:;: -fstack-check}" |
81 |
++ fstack-protector-all|fstack-protector-strong:;:-fstack-protector-all} " \ |
82 |
++ ESP_OPTIONS_STACK_CHECK_SPEC |
83 |
+ #else |
84 |
+ #define ESP_OPTIONS_SSP_SPEC "" |
85 |
+ #endif |
86 |
|
87 |
|
88 |
|
89 |
1.2 src/patchsets/gcc/4.9.3/pie/README.Changelog |
90 |
|
91 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.Changelog?rev=1.2&view=markup |
92 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.Changelog?rev=1.2&content-type=text/plain |
93 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.Changelog?r1=1.1&r2=1.2 |
94 |
|
95 |
Index: README.Changelog |
96 |
=================================================================== |
97 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.9.3/pie/README.Changelog,v |
98 |
retrieving revision 1.1 |
99 |
retrieving revision 1.2 |
100 |
diff -u -r1.1 -r1.2 |
101 |
--- README.Changelog 2 Jul 2015 03:13:34 -0000 1.1 |
102 |
+++ README.Changelog 30 Aug 2015 05:28:48 -0000 1.2 |
103 |
@@ -1,3 +1,10 @@ |
104 |
+0.6.3 Mike Frysinger <vapier@g.o> |
105 |
+ |
106 |
+ #518598 |
107 |
+ * gcc/config/arm/elf.h (ESP_NO_STACK_CHECK): Define. |
108 |
+ * gcc/config/esp.h (ESP_OPTIONS_SSP_SPEC): Do not add -fstack-check |
109 |
+ when ESP_NO_STACK_CHECK is defined. |
110 |
+ |
111 |
0.6.2 Magnus Granberg <zorry@g.o> |
112 |
|
113 |
#528690 |
114 |
|
115 |
|
116 |
|
117 |
1.2 src/patchsets/gcc/4.9.3/pie/README.history |
118 |
|
119 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.history?rev=1.2&view=markup |
120 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.history?rev=1.2&content-type=text/plain |
121 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/pie/README.history?r1=1.1&r2=1.2 |
122 |
|
123 |
Index: README.history |
124 |
=================================================================== |
125 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.9.3/pie/README.history,v |
126 |
retrieving revision 1.1 |
127 |
retrieving revision 1.2 |
128 |
diff -u -r1.1 -r1.2 |
129 |
--- README.history 2 Jul 2015 03:13:34 -0000 1.1 |
130 |
+++ README.history 30 Aug 2015 05:28:48 -0000 1.2 |
131 |
@@ -1,3 +1,6 @@ |
132 |
+0.6.3 29 Aug 2015 |
133 |
+ U 35_all_gcc48_config_arm.patch |
134 |
+ U 40_all_gcc49_config_esp.patch |
135 |
0.6.2 5 Jan 2015 |
136 |
U 03_all_gcc49_Makefile.in.patch |
137 |
0.6.1 07 Jun 2014 |