2d4dca
Make sure that the asm files don't incorrectly trigger an executable
2d4dca
stack marking in the final shared library.  That's bad, mmmkay.
2d4dca
2d4dca
Upstream has already fixed this in their cvs.
2d4dca
2d4dca
--- libdv/dct_block_mmx.S
2d4dca
+++ libdv/dct_block_mmx.S
2d4dca
@@ -1207,3 +1207,7 @@ _dv_dct_block_mmx_postscale_248:
2d4dca
 	popl	 %esi
2d4dca
 	popl	 %ebp
2d4dca
 	ret
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/dct_block_mmx_x86_64.S
2d4dca
+++ libdv/dct_block_mmx_x86_64.S
2d4dca
@@ -1197,3 +1197,7 @@ _dv_dct_block_mmx_x86_64_postscale_248:
2d4dca
 	pop	 %r12
2d4dca
 	
2d4dca
 	ret
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/encode_x86.S
2d4dca
+++ libdv/encode_x86.S
2d4dca
@@ -599,3 +599,6 @@ _dv_need_dct_248_mmx_rows:
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/encode_x86_64.S
2d4dca
+++ libdv/encode_x86_64.S
2d4dca
@@ -600,3 +600,6 @@ _dv_need_dct_248_mmx_x86_64_rows:
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/idct_block_mmx.S
2d4dca
+++ libdv/idct_block_mmx.S
2d4dca
@@ -648,3 +648,6 @@ x0:
2d4dca
 	.long 0,0
2d4dca
 	.align 8
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/idct_block_mmx_x86_64.S
2d4dca
+++ libdv/idct_block_mmx_x86_64.S
2d4dca
@@ -653,3 +653,6 @@ x0:
2d4dca
 	.long 0,0
2d4dca
 	.align 8
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/quant_x86.S
2d4dca
+++ libdv/quant_x86.S
2d4dca
@@ -454,3 +454,6 @@ _dv_quant_x86:	
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/quant_x86_64.S
2d4dca
+++ libdv/quant_x86_64.S
2d4dca
@@ -459,3 +459,6 @@ _dv_quant_x86_64:
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/rgbtoyuv.S
2d4dca
+++ libdv/rgbtoyuv.S
2d4dca
@@ -1430,3 +1430,6 @@ video_copy_ntsc_c_block_mmx_loop:	
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/rgbtoyuv_x86_64.S
2d4dca
+++ libdv/rgbtoyuv_x86_64.S
2d4dca
@@ -1370,3 +1370,6 @@ video_copy_ntsc_c_block_mmx_loop:	
2d4dca
 
2d4dca
 
2d4dca
 
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/transpose_x86.S
2d4dca
+++ libdv/transpose_x86.S
2d4dca
@@ -188,3 +188,7 @@ popl    %esi
2d4dca
 popl %ebp
2d4dca
 
2d4dca
 ret     $0
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/transpose_x86_64.S
2d4dca
+++ libdv/transpose_x86_64.S
2d4dca
@@ -188,3 +188,7 @@ all_done_ready_to_exit:
2d4dca
 	pop	%r12
2d4dca
 
2d4dca
 	ret     $0
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/vlc_x86.S
2d4dca
+++ libdv/vlc_x86.S
2d4dca
@@ -585,3 +585,7 @@ mod_12:
2d4dca
 	.align 16
2d4dca
 const_f_0_0_0:
2d4dca
 	.short	0xffff,0,0,0
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif
2d4dca
--- libdv/vlc_x86_64.S
2d4dca
+++ libdv/vlc_x86_64.S
2d4dca
@@ -671,3 +671,7 @@ mod_12:
2d4dca
 	.align 16
2d4dca
 const_f_0_0_0:
2d4dca
 	.short	0xffff,0,0,0
2d4dca
+
2d4dca
+#ifdef __ELF__
2d4dca
+.section .note.GNU-stack,"",@progbits
2d4dca
+#endif