diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/note-gnu-stack.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/note-gnu-stack.dpatch | 316 |
1 files changed, 316 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/note-gnu-stack.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/note-gnu-stack.dpatch new file mode 100644 index 0000000000..3ffc3925d4 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/note-gnu-stack.dpatch | |||
@@ -0,0 +1,316 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Add .note.GNU-stack sections for gcc's crt files, libffi and boehm-gc | ||
4 | # DP: Taken from FC. | ||
5 | |||
6 | dir= | ||
7 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
8 | pdir="-d $3" | ||
9 | dir="$3/" | ||
10 | elif [ $# -ne 1 ]; then | ||
11 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
12 | exit 1 | ||
13 | fi | ||
14 | case "$1" in | ||
15 | -patch) | ||
16 | patch $pdir -f --no-backup-if-mismatch -p0 < $0 | ||
17 | #cd ${dir}gcc && autoconf | ||
18 | ;; | ||
19 | -unpatch) | ||
20 | patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 | ||
21 | #rm ${dir}gcc/configure | ||
22 | ;; | ||
23 | *) | ||
24 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
25 | exit 1 | ||
26 | esac | ||
27 | exit 0 | ||
28 | |||
29 | gcc/ | ||
30 | |||
31 | 2004-09-20 Jakub Jelinek <jakub@redhat.com> | ||
32 | |||
33 | * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also | ||
34 | on ppc64-linux. | ||
35 | |||
36 | * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on | ||
37 | ia64-linux. | ||
38 | * config/ia64/crtbegin.asm: Likewise. | ||
39 | * config/ia64/crtend.asm: Likewise. | ||
40 | * config/ia64/crti.asm: Likewise. | ||
41 | * config/ia64/crtn.asm: Likewise. | ||
42 | |||
43 | 2004-05-14 Jakub Jelinek <jakub@redhat.com> | ||
44 | |||
45 | * config/ia64/linux.h (TARGET_ASM_FILE_END): Define. | ||
46 | |||
47 | |||
48 | boehm-gc/ | ||
49 | |||
50 | 2005-02-08 Jakub Jelinek <jakub@redhat.com> | ||
51 | |||
52 | * ia64_save_regs_in_stack.s: Moved to... | ||
53 | * ia64_save_regs_in_stack.S: ... this. Add .note.GNU-stack | ||
54 | on Linux. | ||
55 | |||
56 | libffi/ | ||
57 | |||
58 | 2007-05-11 Daniel Jacobowitz <dan@debian.org> | ||
59 | |||
60 | * src/arm/sysv.S: Fix ARM comment marker. | ||
61 | |||
62 | 2005-02-08 Jakub Jelinek <jakub@redhat.com> | ||
63 | |||
64 | * src/alpha/osf.S: Add .note.GNU-stack on Linux. | ||
65 | * src/s390/sysv.S: Likewise. | ||
66 | * src/powerpc/linux64.S: Likewise. | ||
67 | * src/powerpc/linux64_closure.S: Likewise. | ||
68 | * src/powerpc/ppc_closure.S: Likewise. | ||
69 | * src/powerpc/sysv.S: Likewise. | ||
70 | * src/x86/unix64.S: Likewise. | ||
71 | * src/x86/sysv.S: Likewise. | ||
72 | * src/sparc/v8.S: Likewise. | ||
73 | * src/sparc/v9.S: Likewise. | ||
74 | * src/m68k/sysv.S: Likewise. | ||
75 | * src/ia64/unix.S: Likewise. | ||
76 | * src/arm/sysv.S: Likewise. | ||
77 | |||
78 | |||
79 | Index: boehm-gc/ia64_save_regs_in_stack.s | ||
80 | =================================================================== | ||
81 | --- boehm-gc/ia64_save_regs_in_stack.s (revision 107431) | ||
82 | +++ boehm-gc/ia64_save_regs_in_stack.s (revision 107432) | ||
83 | @@ -1,12 +0,0 @@ | ||
84 | - .text | ||
85 | - .align 16 | ||
86 | - .global GC_save_regs_in_stack | ||
87 | - .proc GC_save_regs_in_stack | ||
88 | -GC_save_regs_in_stack: | ||
89 | - .body | ||
90 | - flushrs | ||
91 | - ;; | ||
92 | - mov r8=ar.bsp | ||
93 | - br.ret.sptk.few rp | ||
94 | - .endp GC_save_regs_in_stack | ||
95 | - | ||
96 | Index: boehm-gc/ia64_save_regs_in_stack.S | ||
97 | =================================================================== | ||
98 | --- boehm-gc/ia64_save_regs_in_stack.S (revision 0) | ||
99 | +++ boehm-gc/ia64_save_regs_in_stack.S (revision 107432) | ||
100 | @@ -0,0 +1,15 @@ | ||
101 | + .text | ||
102 | + .align 16 | ||
103 | + .global GC_save_regs_in_stack | ||
104 | + .proc GC_save_regs_in_stack | ||
105 | +GC_save_regs_in_stack: | ||
106 | + .body | ||
107 | + flushrs | ||
108 | + ;; | ||
109 | + mov r8=ar.bsp | ||
110 | + br.ret.sptk.few rp | ||
111 | + .endp GC_save_regs_in_stack | ||
112 | + | ||
113 | +#ifdef __linux__ | ||
114 | + .section .note.GNU-stack,"",@progbits | ||
115 | +#endif | ||
116 | --- gcc/config/ia64/linux.h.orig 2006-10-12 02:01:00.000000000 +0200 | ||
117 | +++ gcc/config/ia64/linux.h 2006-12-11 10:33:13.000000000 +0100 | ||
118 | @@ -5,6 +5,8 @@ | ||
119 | |||
120 | #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux"); | ||
121 | |||
122 | +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack | ||
123 | + | ||
124 | /* This is for -profile to use -lc_p instead of -lc. */ | ||
125 | #undef CC1_SPEC | ||
126 | #define CC1_SPEC "%{profile:-p} %{G*}" | ||
127 | --- gcc/config/ia64/lib1funcs.asm.orig 2006-01-18 22:46:41.000000000 +0100 | ||
128 | +++ gcc/config/ia64/lib1funcs.asm 2006-12-11 10:33:13.000000000 +0100 | ||
129 | @@ -792,3 +792,7 @@ | ||
130 | } | ||
131 | .endp __floattitf | ||
132 | #endif | ||
133 | + | ||
134 | +#ifdef __linux__ | ||
135 | +.section .note.GNU-stack; .previous | ||
136 | +#endif | ||
137 | --- gcc/config/ia64/crti.asm.orig 2006-01-18 22:46:41.000000000 +0100 | ||
138 | +++ gcc/config/ia64/crti.asm 2006-12-11 10:33:13.000000000 +0100 | ||
139 | @@ -64,3 +64,7 @@ | ||
140 | .body | ||
141 | |||
142 | # end of crti.asm | ||
143 | + | ||
144 | +#ifdef __linux__ | ||
145 | +.section .note.GNU-stack; .previous | ||
146 | +#endif | ||
147 | --- gcc/config/ia64/crtn.asm.orig 2006-01-18 22:46:41.000000000 +0100 | ||
148 | +++ gcc/config/ia64/crtn.asm 2006-12-11 10:33:13.000000000 +0100 | ||
149 | @@ -54,3 +54,7 @@ | ||
150 | br.ret.sptk.many b0 | ||
151 | |||
152 | # end of crtn.asm | ||
153 | + | ||
154 | +#ifdef __linux__ | ||
155 | +.section .note.GNU-stack; .previous | ||
156 | +#endif | ||
157 | --- gcc/config/ia64/crtend.asm.orig 2006-01-18 22:46:41.000000000 +0100 | ||
158 | +++ gcc/config/ia64/crtend.asm 2006-12-11 10:33:13.000000000 +0100 | ||
159 | @@ -122,3 +122,7 @@ | ||
160 | |||
161 | br.ret.sptk.many rp | ||
162 | .endp __do_global_ctors_aux | ||
163 | + | ||
164 | +#ifdef __linux__ | ||
165 | +.section .note.GNU-stack; .previous | ||
166 | +#endif | ||
167 | --- gcc/config/ia64/crtbegin.asm.orig 2006-01-18 22:46:41.000000000 +0100 | ||
168 | +++ gcc/config/ia64/crtbegin.asm 2006-12-11 10:33:13.000000000 +0100 | ||
169 | @@ -255,3 +255,7 @@ | ||
170 | .weak __cxa_finalize | ||
171 | #endif | ||
172 | .weak _Jv_RegisterClasses | ||
173 | + | ||
174 | +#ifdef __linux__ | ||
175 | +.section .note.GNU-stack; .previous | ||
176 | +#endif | ||
177 | --- gcc/config/rs6000/ppc-asm.h.orig 2006-01-18 22:46:46.000000000 +0100 | ||
178 | +++ gcc/config/rs6000/ppc-asm.h 2006-12-11 10:33:14.000000000 +0100 | ||
179 | @@ -158,7 +158,7 @@ | ||
180 | .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name) | ||
181 | #endif | ||
182 | |||
183 | -#if defined __linux__ && !defined __powerpc64__ | ||
184 | +#if defined __linux__ | ||
185 | .section .note.GNU-stack | ||
186 | .previous | ||
187 | #endif | ||
188 | --- libffi/src/powerpc/ppc_closure.S.orig 2006-03-25 09:16:06.000000000 +0100 | ||
189 | +++ libffi/src/powerpc/ppc_closure.S 2006-12-11 10:33:14.000000000 +0100 | ||
190 | @@ -281,3 +281,7 @@ | ||
191 | .LEFDE1: | ||
192 | |||
193 | #endif | ||
194 | + | ||
195 | +#if defined __ELF__ && defined __linux__ | ||
196 | + .section .note.GNU-stack,"",@progbits | ||
197 | +#endif | ||
198 | --- libffi/src/powerpc/sysv.S.orig 2006-03-25 09:16:06.000000000 +0100 | ||
199 | +++ libffi/src/powerpc/sysv.S 2006-12-11 10:33:14.000000000 +0100 | ||
200 | @@ -217,3 +217,7 @@ | ||
201 | .align 2 | ||
202 | .LEFDE1: | ||
203 | #endif | ||
204 | + | ||
205 | +#if defined __ELF__ && defined __linux__ | ||
206 | + .section .note.GNU-stack,"",@progbits | ||
207 | +#endif | ||
208 | --- libffi/src/powerpc/linux64_closure.S.orig 2006-01-18 22:49:27.000000000 +0100 | ||
209 | +++ libffi/src/powerpc/linux64_closure.S 2006-12-11 10:33:14.000000000 +0100 | ||
210 | @@ -204,3 +204,7 @@ | ||
211 | .align 3 | ||
212 | .LEFDE1: | ||
213 | #endif | ||
214 | + | ||
215 | +#if defined __ELF__ && defined __linux__ | ||
216 | + .section .note.GNU-stack,"",@progbits | ||
217 | +#endif | ||
218 | --- libffi/src/powerpc/linux64.S.orig 2006-03-25 09:16:06.000000000 +0100 | ||
219 | +++ libffi/src/powerpc/linux64.S 2006-12-11 10:33:14.000000000 +0100 | ||
220 | @@ -175,3 +175,7 @@ | ||
221 | .align 3 | ||
222 | .LEFDE1: | ||
223 | #endif | ||
224 | + | ||
225 | +#if defined __ELF__ && defined __linux__ | ||
226 | + .section .note.GNU-stack,"",@progbits | ||
227 | +#endif | ||
228 | --- libffi/src/arm/sysv.S.orig 2006-10-12 02:00:57.000000000 +0200 | ||
229 | +++ libffi/src/arm/sysv.S 2006-12-11 10:33:14.000000000 +0100 | ||
230 | @@ -255,3 +255,6 @@ | ||
231 | .ffi_closure_SYSV_end: | ||
232 | .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV) | ||
233 | |||
234 | +#if defined __ELF__ && defined __linux__ | ||
235 | + .section .note.GNU-stack,"",%progbits | ||
236 | +#endif | ||
237 | --- libffi/src/m68k/sysv.S.orig 2006-01-18 22:49:27.000000000 +0100 | ||
238 | +++ libffi/src/m68k/sysv.S 2006-12-11 10:33:14.000000000 +0100 | ||
239 | @@ -207,3 +207,7 @@ | ||
240 | rts | ||
241 | CFI_ENDPROC() | ||
242 | .size ffi_closure_struct_SYSV,.-ffi_closure_struct_SYSV | ||
243 | + | ||
244 | +#if defined __ELF__ && defined __linux__ | ||
245 | + .section .note.GNU-stack,"",@progbits | ||
246 | +#endif | ||
247 | --- libffi/src/alpha/osf.S.orig 2006-01-18 22:49:27.000000000 +0100 | ||
248 | +++ libffi/src/alpha/osf.S 2006-12-11 10:33:14.000000000 +0100 | ||
249 | @@ -356,4 +356,8 @@ | ||
250 | .byte 16 # uleb128 offset 16*-8 | ||
251 | .align 3 | ||
252 | $LEFDE3: | ||
253 | + | ||
254 | +#ifdef __linux__ | ||
255 | + .section .note.GNU-stack,"",@progbits | ||
256 | +#endif | ||
257 | #endif | ||
258 | --- libffi/src/x86/sysv.S.orig 2006-01-18 22:49:28.000000000 +0100 | ||
259 | +++ libffi/src/x86/sysv.S 2006-12-11 10:33:14.000000000 +0100 | ||
260 | @@ -376,3 +376,7 @@ | ||
261 | #endif | ||
262 | |||
263 | #endif /* ifndef __x86_64__ */ | ||
264 | + | ||
265 | +#if defined __ELF__ && defined __linux__ | ||
266 | + .section .note.GNU-stack,"",@progbits | ||
267 | +#endif | ||
268 | --- libffi/src/x86/unix64.S.orig 2006-01-18 22:49:28.000000000 +0100 | ||
269 | +++ libffi/src/x86/unix64.S 2006-12-11 10:33:14.000000000 +0100 | ||
270 | @@ -410,3 +410,7 @@ | ||
271 | .LEFDE3: | ||
272 | |||
273 | #endif /* __x86_64__ */ | ||
274 | + | ||
275 | +#if defined __ELF__ && defined __linux__ | ||
276 | + .section .note.GNU-stack,"",@progbits | ||
277 | +#endif | ||
278 | --- libffi/src/s390/sysv.S.orig 2006-01-18 22:49:28.000000000 +0100 | ||
279 | +++ libffi/src/s390/sysv.S 2006-12-11 10:33:14.000000000 +0100 | ||
280 | @@ -427,3 +427,6 @@ | ||
281 | |||
282 | #endif | ||
283 | |||
284 | +#if defined __ELF__ && defined __linux__ | ||
285 | + .section .note.GNU-stack,"",@progbits | ||
286 | +#endif | ||
287 | --- libffi/src/ia64/unix.S.orig 2006-01-18 22:49:29.000000000 +0100 | ||
288 | +++ libffi/src/ia64/unix.S 2006-12-11 10:33:14.000000000 +0100 | ||
289 | @@ -553,3 +553,7 @@ | ||
290 | data8 @pcrel(.Lld_hfa_float) // FFI_IA64_TYPE_HFA_FLOAT | ||
291 | data8 @pcrel(.Lld_hfa_double) // FFI_IA64_TYPE_HFA_DOUBLE | ||
292 | data8 @pcrel(.Lld_hfa_ldouble) // FFI_IA64_TYPE_HFA_LDOUBLE | ||
293 | + | ||
294 | +#if defined __ELF__ && defined __linux__ | ||
295 | + .section .note.GNU-stack,"",@progbits | ||
296 | +#endif | ||
297 | --- libffi/src/sparc/v9.S.orig 2006-01-18 22:49:29.000000000 +0100 | ||
298 | +++ libffi/src/sparc/v9.S 2006-12-11 10:33:14.000000000 +0100 | ||
299 | @@ -300,3 +300,7 @@ | ||
300 | .align 8 | ||
301 | .LLEFDE2: | ||
302 | #endif | ||
303 | + | ||
304 | +#ifdef __linux__ | ||
305 | + .section .note.GNU-stack,"",@progbits | ||
306 | +#endif | ||
307 | --- libffi/src/sparc/v8.S.orig 2006-01-18 22:49:29.000000000 +0100 | ||
308 | +++ libffi/src/sparc/v8.S 2006-12-11 10:33:14.000000000 +0100 | ||
309 | @@ -265,3 +265,7 @@ | ||
310 | .byte 0x1f ! uleb128 0x1f | ||
311 | .align WS | ||
312 | .LLEFDE2: | ||
313 | + | ||
314 | +#if defined __ELF__ && defined __linux__ | ||
315 | + .section .note.GNU-stack,"",@progbits | ||
316 | +#endif | ||