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