Contents of /trunk/xvid/patches/xvid-1.1.3-noexec-stack.patch
Parent Directory | Revision Log
Revision 327 -
(show annotations)
(download)
Sun Aug 26 16:46:22 2007 UTC (17 years, 1 month ago) by niro
File size: 23616 byte(s)
Sun Aug 26 16:46:22 2007 UTC (17 years, 1 month ago) by niro
File size: 23616 byte(s)
-patches for xvid-1.1.3-r4
1 | --- src/bitstream/x86_asm/cbp_3dne.asm |
2 | +++ src/bitstream/x86_asm/cbp_3dne.asm |
3 | @@ -123,3 +123,9 @@ calc_cbp_3dne: |
4 | ret |
5 | .endfunc |
6 | |
7 | +;============================================================================= |
8 | +; No executable stack |
9 | +;============================================================================= |
10 | +%ifidn __OUTPUT_FORMAT__,elf |
11 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
12 | +%endif |
13 | --- src/bitstream/x86_asm/cbp_mmx.asm |
14 | +++ src/bitstream/x86_asm/cbp_mmx.asm |
15 | @@ -148,3 +148,9 @@ calc_cbp_mmx: |
16 | ret |
17 | .endfunc |
18 | |
19 | +;============================================================================= |
20 | +; No executable stack |
21 | +;============================================================================= |
22 | +%ifidn __OUTPUT_FORMAT__,elf |
23 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
24 | +%endif |
25 | --- src/bitstream/x86_asm/cbp_sse2.asm |
26 | +++ src/bitstream/x86_asm/cbp_sse2.asm |
27 | @@ -140,3 +140,9 @@ calc_cbp_sse2: |
28 | ret |
29 | .endfunc |
30 | |
31 | +;============================================================================= |
32 | +; No executable stack |
33 | +;============================================================================= |
34 | +%ifidn __OUTPUT_FORMAT__,elf |
35 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
36 | +%endif |
37 | --- src/dct/ia64_asm/fdct_ia64.s |
38 | +++ src/dct/ia64_asm/fdct_ia64.s |
39 | @@ -1176,3 +1176,5 @@ fdct_ia64: |
40 | // .endp fdct_ia64# |
41 | // .common fdct#,8,8 |
42 | // |
43 | + |
44 | +.section .note.GNU-stack,"",@progbits |
45 | --- src/dct/ia64_asm/idct_fini.s |
46 | +++ src/dct/ia64_asm/idct_fini.s |
47 | @@ -1,3 +1,5 @@ |
48 | |
49 | mov ar.pfs = r16 |
50 | br.ret.sptk.few b0 |
51 | + |
52 | +.section .note.GNU-stack,"",@progbits |
53 | --- src/dct/ia64_asm/idct_ia64_ecc.s |
54 | +++ src/dct/ia64_asm/idct_ia64_ecc.s |
55 | @@ -1561,3 +1561,5 @@ idct_ia64: |
56 | br.ret.sptk.few b0 |
57 | |
58 | .endp |
59 | + |
60 | +.section .note.GNU-stack,"",@progbits |
61 | --- src/dct/ia64_asm/idct_ia64_gcc.s |
62 | +++ src/dct/ia64_asm/idct_ia64_gcc.s |
63 | @@ -1561,3 +1561,5 @@ idct_ia64: |
64 | br.ret.sptk.few b0 |
65 | |
66 | .endp |
67 | + |
68 | +.section .note.GNU-stack,"",@progbits |
69 | --- src/dct/ia64_asm/idct_init.s |
70 | +++ src/dct/ia64_asm/idct_init.s |
71 | @@ -32,3 +32,5 @@ |
72 | fpack one = f1, f1 |
73 | add addreg2 = 2, in0 |
74 | ;; |
75 | + |
76 | +.section .note.GNU-stack,"",@progbits |
77 | --- src/dct/x86_64_asm/fdct_mmx_skal.asm |
78 | +++ src/dct/x86_64_asm/fdct_mmx_skal.asm |
79 | @@ -461,3 +461,10 @@ SECTION .text align=16 |
80 | ;----------------------------------------------------------------------------- |
81 | |
82 | MAKE_FDCT_FUNC fdct_skal_x86_64, fMTX_MULT_XMM |
83 | + |
84 | +;============================================================================= |
85 | +; No executable stack |
86 | +;============================================================================= |
87 | +%ifidn __OUTPUT_FORMAT__,elf |
88 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
89 | +%endif |
90 | --- src/dct/x86_64_asm/idct_mmx.asm |
91 | +++ src/dct/x86_64_asm/idct_mmx.asm |
92 | @@ -523,3 +523,9 @@ idct_x86_64: |
93 | ret |
94 | .endfunc |
95 | |
96 | +;============================================================================= |
97 | +; No executable stack |
98 | +;============================================================================= |
99 | +%ifidn __OUTPUT_FORMAT__,elf |
100 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
101 | +%endif |
102 | --- src/dct/x86_asm/fdct_mmx_ffmpeg.asm |
103 | +++ src/dct/x86_asm/fdct_mmx_ffmpeg.asm |
104 | @@ -422,3 +422,10 @@ MAKE_FDCT_FUNC fdct_mmx_ffmpeg, FDCT_ROW |
105 | ;----------------------------------------------------------------------------- |
106 | |
107 | MAKE_FDCT_FUNC fdct_xmm_ffmpeg, FDCT_ROW_XMM |
108 | + |
109 | +;============================================================================= |
110 | +; No executable stack |
111 | +;============================================================================= |
112 | +%ifidn __OUTPUT_FORMAT__,elf |
113 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
114 | +%endif |
115 | --- src/dct/x86_asm/fdct_mmx_skal.asm |
116 | +++ src/dct/x86_asm/fdct_mmx_skal.asm |
117 | @@ -523,3 +523,10 @@ MAKE_FDCT_FUNC fdct_mmx_skal, fMTX_MULT_ |
118 | ;----------------------------------------------------------------------------- |
119 | |
120 | MAKE_FDCT_FUNC fdct_xmm_skal, fMTX_MULT_XMM |
121 | + |
122 | +;============================================================================= |
123 | +; No executable stack |
124 | +;============================================================================= |
125 | +%ifidn __OUTPUT_FORMAT__,elf |
126 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
127 | +%endif |
128 | --- src/dct/x86_asm/fdct_sse2_skal.asm |
129 | +++ src/dct/x86_asm/fdct_sse2_skal.asm |
130 | @@ -620,3 +620,9 @@ fdct_sse2_skal: |
131 | ret |
132 | .endfunc |
133 | |
134 | +;============================================================================= |
135 | +; No executable stack |
136 | +;============================================================================= |
137 | +%ifidn __OUTPUT_FORMAT__,elf |
138 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
139 | +%endif |
140 | --- src/dct/x86_asm/idct_3dne.asm |
141 | +++ src/dct/x86_asm/idct_3dne.asm |
142 | @@ -720,3 +720,9 @@ idct_3dne: |
143 | ret |
144 | .endfunc |
145 | |
146 | +;============================================================================= |
147 | +; No executable stack |
148 | +;============================================================================= |
149 | +%ifidn __OUTPUT_FORMAT__,elf |
150 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
151 | +%endif |
152 | --- src/dct/x86_asm/idct_mmx.asm |
153 | +++ src/dct/x86_asm/idct_mmx.asm |
154 | @@ -630,3 +630,9 @@ idct_xmm: |
155 | ret |
156 | .endfunc |
157 | |
158 | +;============================================================================= |
159 | +; No executable stack |
160 | +;============================================================================= |
161 | +%ifidn __OUTPUT_FORMAT__,elf |
162 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
163 | +%endif |
164 | --- src/dct/x86_asm/idct_sse2_dmitry.asm |
165 | +++ src/dct/x86_asm/idct_sse2_dmitry.asm |
166 | @@ -345,3 +345,9 @@ idct_sse2_dmitry: |
167 | ret |
168 | .endfunc |
169 | |
170 | +;============================================================================= |
171 | +; No executable stack |
172 | +;============================================================================= |
173 | +%ifidn __OUTPUT_FORMAT__,elf |
174 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
175 | +%endif |
176 | --- src/dct/x86_asm/simple_idct_mmx.asm |
177 | +++ src/dct/x86_asm/simple_idct_mmx.asm |
178 | @@ -1254,3 +1254,9 @@ ALIGN 16 |
179 | ret |
180 | .endfunc |
181 | |
182 | +;============================================================================= |
183 | +; No executable stack |
184 | +;============================================================================= |
185 | +%ifidn __OUTPUT_FORMAT__,elf |
186 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
187 | +%endif |
188 | --- src/image/ia64_asm/interpolate8x8_ia64.s |
189 | +++ src/image/ia64_asm/interpolate8x8_ia64.s |
190 | @@ -234,4 +234,4 @@ interpolate8x8_halfpel_hv_ia64: |
191 | br.ret.sptk.many b0 |
192 | .endp interpolate8x8_halfpel_hv_ia64# |
193 | |
194 | - |
195 | +.section .note.GNU-stack,"",@progbits |
196 | --- src/image/ia64_asm/interpolate8x8_ia64_exact.s |
197 | +++ src/image/ia64_asm/interpolate8x8_ia64_exact.s |
198 | @@ -307,4 +307,4 @@ interpolate8x8_halfpel_hv_ia64: |
199 | br.ret.sptk.many b0 |
200 | .endp interpolate8x8_halfpel_hv_ia64# |
201 | |
202 | - |
203 | +.section .note.GNU-stack,"",@progbits |
204 | --- src/image/x86_64_asm/interpolate8x8_mmx.asm |
205 | +++ src/image/x86_64_asm/interpolate8x8_mmx.asm |
206 | @@ -706,4 +706,11 @@ interpolate8x8_6tap_lowpass_v_x86_64: |
207 | |
208 | pop rbx |
209 | ret |
210 | -.endfunc |
211 | \ No newline at end of file |
212 | +.endfunc |
213 | + |
214 | +;============================================================================= |
215 | +; No executable stack |
216 | +;============================================================================= |
217 | +%ifidn __OUTPUT_FORMAT__,elf |
218 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
219 | +%endif |
220 | --- src/image/x86_64_asm/interpolate8x8_xmm.asm |
221 | +++ src/image/x86_64_asm/interpolate8x8_xmm.asm |
222 | @@ -704,3 +704,10 @@ interpolate8x8_halfpel_hv_add_x86_64: |
223 | |
224 | EPILOG |
225 | .endfunc |
226 | + |
227 | +;============================================================================= |
228 | +; No executable stack |
229 | +;============================================================================= |
230 | +%ifidn __OUTPUT_FORMAT__,elf |
231 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
232 | +%endif |
233 | --- src/image/x86_64_asm/qpel_mmx.asm |
234 | +++ src/image/x86_64_asm/qpel_mmx.asm |
235 | @@ -1152,3 +1152,10 @@ xvid_V_Pass_Avrg_Up_8_Add_x86_64: |
236 | .endfunc |
237 | |
238 | ;////////////////////////////////////////////////////////////////////// |
239 | + |
240 | +;============================================================================= |
241 | +; No executable stack |
242 | +;============================================================================= |
243 | +%ifidn __OUTPUT_FORMAT__,elf |
244 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
245 | +%endif |
246 | --- src/image/x86_asm/colorspace_rgb_mmx.asm |
247 | +++ src/image/x86_asm/colorspace_rgb_mmx.asm |
248 | @@ -429,3 +429,9 @@ MAKE_COLORSPACE bgra_to_yv12_mmx,0, 4 |
249 | MAKE_COLORSPACE yv12_to_bgr_mmx,48, 3,8,2, YV12_TO_BGR, 3, -1 |
250 | MAKE_COLORSPACE yv12_to_bgra_mmx,48, 4,8,2, YV12_TO_BGR, 4, -1 |
251 | |
252 | +;============================================================================= |
253 | +; No executable stack |
254 | +;============================================================================= |
255 | +%ifidn __OUTPUT_FORMAT__,elf |
256 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
257 | +%endif |
258 | --- src/image/x86_asm/colorspace_yuv_mmx.asm |
259 | +++ src/image/x86_asm/colorspace_yuv_mmx.asm |
260 | @@ -279,3 +279,10 @@ SECTION .text |
261 | MAKE_YV12_TO_YV12 yv12_to_yv12_mmx, 0 |
262 | |
263 | MAKE_YV12_TO_YV12 yv12_to_yv12_xmm, 1 |
264 | + |
265 | +;============================================================================= |
266 | +; No executable stack |
267 | +;============================================================================= |
268 | +%ifidn __OUTPUT_FORMAT__,elf |
269 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
270 | +%endif |
271 | --- src/image/x86_asm/colorspace_yuyv_mmx.asm |
272 | +++ src/image/x86_asm/colorspace_yuyv_mmx.asm |
273 | @@ -329,3 +329,10 @@ MAKE_COLORSPACE yv12_to_uyvy_mmx,0, |
274 | |
275 | MAKE_COLORSPACE yv12_to_yuyvi_mmx,0, 2,8,4, YV12_TO_YUYVI, 0, -1 |
276 | MAKE_COLORSPACE yv12_to_uyvyi_mmx,0, 2,8,4, YV12_TO_YUYVI, 1, -1 |
277 | + |
278 | +;============================================================================= |
279 | +; No executable stack |
280 | +;============================================================================= |
281 | +%ifidn __OUTPUT_FORMAT__,elf |
282 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
283 | +%endif |
284 | --- src/image/x86_asm/interpolate8x8_3dn.asm |
285 | +++ src/image/x86_asm/interpolate8x8_3dn.asm |
286 | @@ -485,3 +485,9 @@ interpolate8x4_halfpel_hv_3dn |
287 | ret |
288 | .endfunc |
289 | |
290 | +;============================================================================= |
291 | +; No executable stack |
292 | +;============================================================================= |
293 | +%ifidn __OUTPUT_FORMAT__,elf |
294 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
295 | +%endif |
296 | --- src/image/x86_asm/interpolate8x8_3dne.asm |
297 | +++ src/image/x86_asm/interpolate8x8_3dne.asm |
298 | @@ -579,3 +579,9 @@ ALIGN 16 |
299 | ret |
300 | .endfunc |
301 | |
302 | +;============================================================================= |
303 | +; No executable stack |
304 | +;============================================================================= |
305 | +%ifidn __OUTPUT_FORMAT__,elf |
306 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
307 | +%endif |
308 | --- src/image/x86_asm/interpolate8x8_mmx.asm |
309 | +++ src/image/x86_asm/interpolate8x8_mmx.asm |
310 | @@ -1367,3 +1367,9 @@ interpolate8x8_halfpel_hv_add_mmx: |
311 | ret |
312 | .endfunc |
313 | |
314 | +;============================================================================= |
315 | +; No executable stack |
316 | +;============================================================================= |
317 | +%ifidn __OUTPUT_FORMAT__,elf |
318 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
319 | +%endif |
320 | --- src/image/x86_asm/interpolate8x8_xmm.asm |
321 | +++ src/image/x86_asm/interpolate8x8_xmm.asm |
322 | @@ -841,3 +841,9 @@ interpolate8x8_halfpel_hv_add_xmm: |
323 | EPILOG |
324 | .endfunc |
325 | |
326 | +;============================================================================= |
327 | +; No executable stack |
328 | +;============================================================================= |
329 | +%ifidn __OUTPUT_FORMAT__,elf |
330 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
331 | +%endif |
332 | --- src/image/x86_asm/postprocessing_mmx.asm |
333 | +++ src/image/x86_asm/postprocessing_mmx.asm |
334 | @@ -124,3 +124,10 @@ image_brightness_mmx: |
335 | ret |
336 | .endfunc |
337 | ;////////////////////////////////////////////////////////////////////// |
338 | + |
339 | +;============================================================================= |
340 | +; No executable stack |
341 | +;============================================================================= |
342 | +%ifidn __OUTPUT_FORMAT__,elf |
343 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
344 | +%endif |
345 | --- src/image/x86_asm/postprocessing_sse2.asm |
346 | +++ src/image/x86_asm/postprocessing_sse2.asm |
347 | @@ -140,3 +140,10 @@ image_brightness_sse2: |
348 | ret |
349 | .endfunc |
350 | ;////////////////////////////////////////////////////////////////////// |
351 | + |
352 | +;============================================================================= |
353 | +; No executable stack |
354 | +;============================================================================= |
355 | +%ifidn __OUTPUT_FORMAT__,elf |
356 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
357 | +%endif |
358 | --- src/image/x86_asm/qpel_mmx.asm |
359 | +++ src/image/x86_asm/qpel_mmx.asm |
360 | @@ -1060,3 +1060,10 @@ xvid_V_Pass_Avrg_Up_8_Add_mmx: |
361 | .endfunc |
362 | |
363 | ;////////////////////////////////////////////////////////////////////// |
364 | + |
365 | +;============================================================================= |
366 | +; No executable stack |
367 | +;============================================================================= |
368 | +%ifidn __OUTPUT_FORMAT__,elf |
369 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
370 | +%endif |
371 | --- src/image/x86_asm/reduced_mmx.asm |
372 | +++ src/image/x86_asm/reduced_mmx.asm |
373 | @@ -1002,3 +1002,9 @@ xvid_Filter_Diff_18x18_To_8x8_mmx: ; 30 |
374 | |
375 | ; pfeewwww... Never Do That On Stage Again. :) |
376 | |
377 | +;============================================================================= |
378 | +; No executable stack |
379 | +;============================================================================= |
380 | +%ifidn __OUTPUT_FORMAT__,elf |
381 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
382 | +%endif |
383 | --- src/motion/ia64_asm/calc_delta_1.s |
384 | +++ src/motion/ia64_asm/calc_delta_1.s |
385 | @@ -25,3 +25,5 @@ |
386 | (neg_2) sub component[0] = 0, component[0] //abs |
387 | (neg_3) sub component[1] = 0, component[1] //abs |
388 | ;; |
389 | + |
390 | +.section .note.GNU-stack,"",@progbits |
391 | --- src/motion/ia64_asm/calc_delta_2.s |
392 | +++ src/motion/ia64_asm/calc_delta_2.s |
393 | @@ -100,3 +100,5 @@ |
394 | (non0_1) ld4 sc[1] = [tabaddress[1]] |
395 | add mpr[8] = mpr[8], ret0 |
396 | ;; |
397 | + |
398 | +.section .note.GNU-stack,"",@progbits |
399 | --- src/motion/ia64_asm/calc_delta_3.s |
400 | +++ src/motion/ia64_asm/calc_delta_3.s |
401 | @@ -15,3 +15,5 @@ |
402 | ;; |
403 | xmpy.l fmv = fmv, fQuant |
404 | ;; |
405 | + |
406 | +.section .note.GNU-stack,"",@progbits |
407 | --- src/motion/ia64_asm/halfpel8_refine_ia64.s |
408 | +++ src/motion/ia64_asm/halfpel8_refine_ia64.s |
409 | @@ -855,3 +855,5 @@ Halfpel8_Refine_ia64: |
410 | br.ret.sptk.many b0 |
411 | |
412 | .endp Halfpel8_Refine_ia64# |
413 | + |
414 | +.section .note.GNU-stack,"",@progbits |
415 | --- src/motion/ia64_asm/sad_ia64.s |
416 | +++ src/motion/ia64_asm/sad_ia64.s |
417 | @@ -1164,3 +1164,5 @@ sad8_ia64: |
418 | mov ar.pfs = r1 |
419 | br.ret.sptk.many b0 |
420 | .endp sad8_ia64# |
421 | + |
422 | +.section .note.GNU-stack,"",@progbits |
423 | --- src/motion/x86_64_asm/sad_mmx.asm |
424 | +++ src/motion/x86_64_asm/sad_mmx.asm |
425 | @@ -162,4 +162,11 @@ sse8_8bit_x86_64: |
426 | |
427 | ;; All done |
428 | ret |
429 | -.endfunc |
430 | \ No newline at end of file |
431 | +.endfunc |
432 | + |
433 | +;============================================================================= |
434 | +; No executable stack |
435 | +;============================================================================= |
436 | +%ifidn __OUTPUT_FORMAT__,elf |
437 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
438 | +%endif |
439 | --- src/motion/x86_64_asm/sad_xmm.asm |
440 | +++ src/motion/x86_64_asm/sad_xmm.asm |
441 | @@ -439,4 +439,11 @@ sad16v_x86_64: |
442 | movd eax, mm7 |
443 | pop rbx |
444 | ret |
445 | -.endfunc |
446 | \ No newline at end of file |
447 | +.endfunc |
448 | + |
449 | +;============================================================================= |
450 | +; No executable stack |
451 | +;============================================================================= |
452 | +%ifidn __OUTPUT_FORMAT__,elf |
453 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
454 | +%endif |
455 | --- src/motion/x86_asm/sad_3dn.asm |
456 | +++ src/motion/x86_asm/sad_3dn.asm |
457 | @@ -228,3 +228,9 @@ sad8bi_3dn: |
458 | ret |
459 | .endfunc |
460 | |
461 | +;============================================================================= |
462 | +; No executable stack |
463 | +;============================================================================= |
464 | +%ifidn __OUTPUT_FORMAT__,elf |
465 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
466 | +%endif |
467 | --- src/motion/x86_asm/sad_3dne.asm |
468 | +++ src/motion/x86_asm/sad_3dne.asm |
469 | @@ -502,3 +502,9 @@ ALIGN 8 |
470 | ret |
471 | .endfunc |
472 | |
473 | +;============================================================================= |
474 | +; No executable stack |
475 | +;============================================================================= |
476 | +%ifidn __OUTPUT_FORMAT__,elf |
477 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
478 | +%endif |
479 | --- src/motion/x86_asm/sad_mmx.asm |
480 | +++ src/motion/x86_asm/sad_mmx.asm |
481 | @@ -747,3 +747,9 @@ sse8_8bit_mmx: |
482 | ret |
483 | .endfunc |
484 | |
485 | +;============================================================================= |
486 | +; No executable stack |
487 | +;============================================================================= |
488 | +%ifidn __OUTPUT_FORMAT__,elf |
489 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
490 | +%endif |
491 | --- src/motion/x86_asm/sad_sse2.asm |
492 | +++ src/motion/x86_asm/sad_sse2.asm |
493 | @@ -170,3 +170,9 @@ dev16_sse2: |
494 | ret |
495 | .endfunc |
496 | |
497 | +;============================================================================= |
498 | +; No executable stack |
499 | +;============================================================================= |
500 | +%ifidn __OUTPUT_FORMAT__,elf |
501 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
502 | +%endif |
503 | --- src/motion/x86_asm/sad_xmm.asm |
504 | +++ src/motion/x86_asm/sad_xmm.asm |
505 | @@ -444,3 +444,9 @@ sad16v_xmm: |
506 | ret |
507 | .endfunc |
508 | |
509 | +;============================================================================= |
510 | +; No executable stack |
511 | +;============================================================================= |
512 | +%ifidn __OUTPUT_FORMAT__,elf |
513 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
514 | +%endif |
515 | --- src/quant/ia64_asm/quant_h263_ia64.s |
516 | +++ src/quant/ia64_asm/quant_h263_ia64.s |
517 | @@ -546,3 +546,5 @@ dequant_h263_inter_ia64: |
518 | br.ret.sptk.many b0 |
519 | .endp dequant_h263_inter_ia64# |
520 | .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-85)" |
521 | + |
522 | +.section .note.GNU-stack,"",@progbits |
523 | --- src/quant/x86_64_asm/quantize_h263_mmx.asm |
524 | +++ src/quant/x86_64_asm/quantize_h263_mmx.asm |
525 | @@ -505,3 +505,10 @@ ALIGN 16 |
526 | xor rax, rax |
527 | ret |
528 | .endfunc |
529 | + |
530 | +;============================================================================= |
531 | +; No executable stack |
532 | +;============================================================================= |
533 | +%ifidn __OUTPUT_FORMAT__,elf |
534 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
535 | +%endif |
536 | --- src/quant/x86_64_asm/quantize_mpeg_xmm.asm |
537 | +++ src/quant/x86_64_asm/quantize_mpeg_xmm.asm |
538 | @@ -807,4 +807,11 @@ ALIGN 16 |
539 | |
540 | xor rax, rax |
541 | ret |
542 | -.endfunc |
543 | \ No newline at end of file |
544 | +.endfunc |
545 | + |
546 | +;============================================================================= |
547 | +; No executable stack |
548 | +;============================================================================= |
549 | +%ifidn __OUTPUT_FORMAT__,elf |
550 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
551 | +%endif |
552 | --- src/quant/x86_asm/quantize_h263_3dne.asm |
553 | +++ src/quant/x86_asm/quantize_h263_3dne.asm |
554 | @@ -784,3 +784,9 @@ ALIGN 8 |
555 | ret |
556 | .endfunc |
557 | |
558 | +;============================================================================= |
559 | +; No executable stack |
560 | +;============================================================================= |
561 | +%ifidn __OUTPUT_FORMAT__,elf |
562 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
563 | +%endif |
564 | --- src/quant/x86_asm/quantize_h263_mmx.asm |
565 | +++ src/quant/x86_asm/quantize_h263_mmx.asm |
566 | @@ -1039,3 +1039,9 @@ dequant_h263_inter_sse2: |
567 | ret |
568 | .endfunc |
569 | |
570 | +;============================================================================= |
571 | +; No executable stack |
572 | +;============================================================================= |
573 | +%ifidn __OUTPUT_FORMAT__,elf |
574 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
575 | +%endif |
576 | --- src/quant/x86_asm/quantize_mpeg_mmx.asm |
577 | +++ src/quant/x86_asm/quantize_mpeg_mmx.asm |
578 | @@ -750,3 +750,9 @@ ALIGN 16 |
579 | ret |
580 | .endfunc |
581 | |
582 | +;============================================================================= |
583 | +; No executable stack |
584 | +;============================================================================= |
585 | +%ifidn __OUTPUT_FORMAT__,elf |
586 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
587 | +%endif |
588 | --- src/quant/x86_asm/quantize_mpeg_xmm.asm |
589 | +++ src/quant/x86_asm/quantize_mpeg_xmm.asm |
590 | @@ -815,3 +815,9 @@ ALIGN 16 |
591 | ret |
592 | .endfunc |
593 | |
594 | +;============================================================================= |
595 | +; No executable stack |
596 | +;============================================================================= |
597 | +%ifidn __OUTPUT_FORMAT__,elf |
598 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
599 | +%endif |
600 | --- src/utils/ia64_asm/mem_transfer_ia64.s |
601 | +++ src/utils/ia64_asm/mem_transfer_ia64.s |
602 | @@ -722,3 +722,5 @@ transfer_8to16sub2_ia64: |
603 | |
604 | br.ret.sptk.many b0 |
605 | .endp transfer_8to16sub2_ia64# |
606 | + |
607 | +.section .note.GNU-stack,"",@progbits |
608 | --- src/utils/x86_64_asm/cpuid.asm |
609 | +++ src/utils/x86_64_asm/cpuid.asm |
610 | @@ -215,4 +215,9 @@ emms_3dn: |
611 | ret |
612 | .endfunc |
613 | |
614 | - |
615 | +;============================================================================= |
616 | +; No executable stack |
617 | +;============================================================================= |
618 | +%ifidn __OUTPUT_FORMAT__,elf |
619 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
620 | +%endif |
621 | --- src/utils/x86_64_asm/interlacing_mmx.asm |
622 | +++ src/utils/x86_64_asm/interlacing_mmx.asm |
623 | @@ -212,3 +212,9 @@ MBFieldTest_x86_64: |
624 | ret |
625 | .endfunc |
626 | |
627 | +;============================================================================= |
628 | +; No executable stack |
629 | +;============================================================================= |
630 | +%ifidn __OUTPUT_FORMAT__,elf |
631 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
632 | +%endif |
633 | --- src/utils/x86_64_asm/mem_transfer_mmx.asm |
634 | +++ src/utils/x86_64_asm/mem_transfer_mmx.asm |
635 | @@ -434,3 +434,10 @@ transfer8x8_copy_x86_64: |
636 | COPY_8_TO_8 |
637 | ret |
638 | .endfunc |
639 | + |
640 | +;============================================================================= |
641 | +; No executable stack |
642 | +;============================================================================= |
643 | +%ifidn __OUTPUT_FORMAT__,elf |
644 | +SECTION ".note.GNU-stack" noalloc noexec nowrite progbits |
645 | +%endif |
646 | --- src/utils/x86_asm/cpuid.asm |
647 | +++ src/utils/x86_asm/cpuid.asm |
648 | @@ -225,4 +225,9 @@ emms_3dn: |
649 | ret |
650 | .endfunc |
651 | |
652 | - |
653 | +;============================================================================= |
654 | +; No executable stack |
655 | +;============================================================================= |
656 | +%ifidn __OUTPUT_FORMAT__,elf |
657 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
658 | +%endif |
659 | --- src/utils/x86_asm/interlacing_mmx.asm |
660 | +++ src/utils/x86_asm/interlacing_mmx.asm |
661 | @@ -217,3 +217,9 @@ MBFieldTest_mmx: |
662 | ret |
663 | .endfunc |
664 | |
665 | +;============================================================================= |
666 | +; No executable stack |
667 | +;============================================================================= |
668 | +%ifidn __OUTPUT_FORMAT__,elf |
669 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
670 | +%endif |
671 | --- src/utils/x86_asm/mem_transfer_3dne.asm |
672 | +++ src/utils/x86_asm/mem_transfer_3dne.asm |
673 | @@ -459,3 +459,9 @@ transfer8x4_copy_3dne: |
674 | ret |
675 | .endfunc |
676 | |
677 | +;============================================================================= |
678 | +; No executable stack |
679 | +;============================================================================= |
680 | +%ifidn __OUTPUT_FORMAT__,elf |
681 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
682 | +%endif |
683 | --- src/utils/x86_asm/mem_transfer_mmx.asm |
684 | +++ src/utils/x86_asm/mem_transfer_mmx.asm |
685 | @@ -568,3 +568,9 @@ transfer8x4_copy_mmx: |
686 | ret |
687 | .endfunc |
688 | |
689 | +;============================================================================= |
690 | +; No executable stack |
691 | +;============================================================================= |
692 | +%ifidn __OUTPUT_FORMAT__,elf |
693 | +section ".note.GNU-stack" noalloc noexec nowrite progbits |
694 | +%endif |