[PATCH] noexecstack support

Dominik 'Rathann' Mierzejewski <[email protected]>
Newsgroups gmane.comp.video.xvid.devel
Message-ID <[email protected]>
Hello.

I've been keeping this patch in my packages for a while. It's a patch
by Hans de Goede, which enables xvidcore to use non executable stack,
allowing it to be used with SELinux enabled. The patch applies cleanly
against XviD-1.1.3.

It's been in use for over a year, so please consider applying it.

Original bug report is here: http://bugzilla.livna.org/show_bug.cgi?id=1412

Regards,
R.

-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
Livna http://rpm.livna.org | MPlayer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"

_______________________________________________
XviD-devel mailing list
[email protected]
http://list.xvid.org/mailman/listinfo/xvid-devel
xvidcore-noexecstack.patch (text/plain, 15.8 KB)
--- xvidcore-1.1.2/src/bitstream/x86_asm/cbp_3dne.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/bitstream/x86_asm/cbp_3dne.asm	2007-02-15 09:57:50.000000000 +0100
@@ -123,3 +123,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/bitstream/x86_asm/cbp_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/bitstream/x86_asm/cbp_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -148,3 +148,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/bitstream/x86_asm/cbp_sse2.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/bitstream/x86_asm/cbp_sse2.asm	2007-02-15 09:57:50.000000000 +0100
@@ -140,3 +140,8 @@
 	ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_64_asm/fdct_mmx_skal.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_64_asm/fdct_mmx_skal.asm	2007-02-15 09:57:50.000000000 +0100
@@ -461,3 +461,8 @@
 ;-----------------------------------------------------------------------------
 
 MAKE_FDCT_FUNC fdct_skal_x86_64, fMTX_MULT_XMM
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_64_asm/idct_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_64_asm/idct_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -523,3 +523,8 @@
     ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/fdct_mmx_ffmpeg.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/fdct_mmx_ffmpeg.asm	2007-02-15 09:57:50.000000000 +0100
@@ -422,3 +422,8 @@
 ;-----------------------------------------------------------------------------
 
 MAKE_FDCT_FUNC fdct_xmm_ffmpeg, FDCT_ROW_XMM
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/fdct_mmx_skal.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/fdct_mmx_skal.asm	2007-02-15 09:57:50.000000000 +0100
@@ -523,3 +523,8 @@
 ;-----------------------------------------------------------------------------
 
 MAKE_FDCT_FUNC fdct_xmm_skal, fMTX_MULT_XMM
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/fdct_sse2_skal.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/fdct_sse2_skal.asm	2007-02-15 09:57:50.000000000 +0100
@@ -620,3 +620,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/idct_3dne.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/idct_3dne.asm	2007-02-15 09:57:50.000000000 +0100
@@ -720,3 +720,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/idct_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/idct_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -630,3 +630,8 @@
     ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/idct_sse2_dmitry.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/idct_sse2_dmitry.asm	2007-02-15 09:57:50.000000000 +0100
@@ -345,3 +345,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/dct/x86_asm/simple_idct_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/dct/x86_asm/simple_idct_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -1254,3 +1254,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_64_asm/interpolate8x8_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_64_asm/interpolate8x8_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -706,4 +706,8 @@
 
   pop rbx
   ret
-.endfunc
\ No newline at end of file
+.endfunc
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_64_asm/interpolate8x8_xmm.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_64_asm/interpolate8x8_xmm.asm	2007-02-15 09:57:50.000000000 +0100
@@ -704,3 +704,8 @@
 
   EPILOG
 .endfunc
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_64_asm/qpel_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_64_asm/qpel_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -1152,3 +1152,8 @@
 .endfunc
 
 ;//////////////////////////////////////////////////////////////////////
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/colorspace_rgb_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/colorspace_rgb_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -429,3 +429,8 @@
 MAKE_COLORSPACE  yv12_to_bgr_mmx,48,   3,8,2,  YV12_TO_BGR,  3, -1
 MAKE_COLORSPACE  yv12_to_bgra_mmx,48,  4,8,2,  YV12_TO_BGR,  4, -1
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/colorspace_yuv_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/colorspace_yuv_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -279,3 +279,8 @@
 MAKE_YV12_TO_YV12	yv12_to_yv12_mmx, 0
 
 MAKE_YV12_TO_YV12	yv12_to_yv12_xmm, 1
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/colorspace_yuyv_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/colorspace_yuyv_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -329,3 +329,8 @@
 
 MAKE_COLORSPACE  yv12_to_yuyvi_mmx,0,   2,8,4,  YV12_TO_YUYVI, 0, -1
 MAKE_COLORSPACE  yv12_to_uyvyi_mmx,0,   2,8,4,  YV12_TO_YUYVI, 1, -1
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_3dn.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_3dn.asm	2007-02-15 09:57:50.000000000 +0100
@@ -485,3 +485,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_3dne.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_3dne.asm	2007-02-15 09:57:50.000000000 +0100
@@ -579,3 +579,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -1367,3 +1367,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_xmm.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/interpolate8x8_xmm.asm	2007-02-15 09:57:50.000000000 +0100
@@ -841,3 +841,8 @@
   EPILOG
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/postprocessing_mmx.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/postprocessing_mmx.asm	2007-02-15 09:57:50.000000000 +0100
@@ -124,3 +124,8 @@
 	ret
 .endfunc
 ;//////////////////////////////////////////////////////////////////////
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/postprocessing_sse2.asm~	2007-02-15 09:57:50.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/postprocessing_sse2.asm	2007-02-15 09:57:50.000000000 +0100
@@ -140,3 +140,8 @@
   ret
 .endfunc
 ;//////////////////////////////////////////////////////////////////////
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/qpel_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/qpel_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -1060,3 +1060,8 @@
 .endfunc
 
 ;//////////////////////////////////////////////////////////////////////
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/image/x86_asm/reduced_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/image/x86_asm/reduced_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -1002,3 +1002,8 @@
 
   ; pfeewwww... Never Do That On Stage Again. :)
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_64_asm/sad_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_64_asm/sad_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -162,4 +162,8 @@
 
   ;; All done
   ret
-.endfunc
\ No newline at end of file
+.endfunc
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_64_asm/sad_xmm.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_64_asm/sad_xmm.asm	2007-02-15 09:57:51.000000000 +0100
@@ -439,4 +439,8 @@
   movd eax, mm7
   pop rbx
   ret
-.endfunc
\ No newline at end of file
+.endfunc
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_asm/sad_3dn.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_asm/sad_3dn.asm	2007-02-15 09:57:51.000000000 +0100
@@ -228,3 +228,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_asm/sad_3dne.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_asm/sad_3dne.asm	2007-02-15 09:57:51.000000000 +0100
@@ -502,3 +502,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_asm/sad_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_asm/sad_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -747,3 +747,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_asm/sad_sse2.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_asm/sad_sse2.asm	2007-02-15 09:57:51.000000000 +0100
@@ -170,3 +170,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/motion/x86_asm/sad_xmm.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/motion/x86_asm/sad_xmm.asm	2007-02-15 09:57:51.000000000 +0100
@@ -444,3 +444,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_64_asm/quantize_h263_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_64_asm/quantize_h263_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -505,3 +505,8 @@
   xor rax, rax
   ret
 .endfunc
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_64_asm/quantize_mpeg_xmm.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_64_asm/quantize_mpeg_xmm.asm	2007-02-15 09:57:51.000000000 +0100
@@ -807,4 +807,8 @@
 
   xor rax, rax
   ret
-.endfunc
\ No newline at end of file
+.endfunc
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_asm/quantize_h263_3dne.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_asm/quantize_h263_3dne.asm	2007-02-15 09:57:51.000000000 +0100
@@ -784,3 +784,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_asm/quantize_h263_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_asm/quantize_h263_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -1039,3 +1039,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_asm/quantize_mpeg_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_asm/quantize_mpeg_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -750,3 +750,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/quant/x86_asm/quantize_mpeg_xmm.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/quant/x86_asm/quantize_mpeg_xmm.asm	2007-02-15 09:57:51.000000000 +0100
@@ -815,3 +815,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_64_asm/cpuid.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_64_asm/cpuid.asm	2007-02-15 09:57:51.000000000 +0100
@@ -216,3 +216,8 @@
 .endfunc
 
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_64_asm/interlacing_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_64_asm/interlacing_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -212,3 +212,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_64_asm/mem_transfer_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_64_asm/mem_transfer_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -434,3 +434,8 @@
   COPY_8_TO_8
   ret
 .endfunc
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_asm/cpuid.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_asm/cpuid.asm	2007-02-15 09:57:51.000000000 +0100
@@ -226,3 +226,8 @@
 .endfunc
 
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_asm/interlacing_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_asm/interlacing_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -217,3 +217,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_asm/mem_transfer_3dne.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_asm/mem_transfer_3dne.asm	2007-02-15 09:57:51.000000000 +0100
@@ -459,3 +459,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
--- xvidcore-1.1.2/src/utils/x86_asm/mem_transfer_mmx.asm~	2007-02-15 09:57:51.000000000 +0100
+++ xvidcore-1.1.2/src/utils/x86_asm/mem_transfer_mmx.asm	2007-02-15 09:57:51.000000000 +0100
@@ -568,3 +568,8 @@
   ret
 .endfunc
 
+
+%ifidn __OUTPUT_FORMAT__,elf
+section ".note.GNU-stack" noalloc noexec nowrite progbits
+%endif
+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.