SOURCES: smpeg-gnu-stack.patch (NEW) - kill exec stack.

pluto pluto at pld-linux.org
Fri Jan 20 21:13:56 CET 2006


Author: pluto                        Date: Fri Jan 20 20:13:56 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- kill exec stack.

---- Files affected:
SOURCES:
   smpeg-gnu-stack.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/smpeg-gnu-stack.patch
diff -u /dev/null SOURCES/smpeg-gnu-stack.patch:1.1
--- /dev/null	Fri Jan 20 21:13:56 2006
+++ SOURCES/smpeg-gnu-stack.patch	Fri Jan 20 21:13:51 2006
@@ -0,0 +1,32 @@
+Make sure that the asm files don't incorrectly trigger an executable
+stack marking in the final shared library.  That's bad, mmmkay.
+
+before:
+$ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK
+  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
+                 0x0000000000000000 0x0000000000000000  RWE    8
+after:
+$ readelf -l /usr/lib/libsmpeg.so | grep -A 1 GNU_STACK
+  GNU_STACK      0x0000000000000000 0x0000000000000000 0x0000000000000000
+                 0x0000000000000000 0x0000000000000000  RW     8
+
+--- smpeg-0.4.4/video/mmxflags_asm.S
++++ smpeg-0.4.4/video/mmxflags_asm.S
+@@ -57,3 +57,7 @@
+ 	.size	 cpu_flags,.Lfe1-cpu_flags
+ 
+ #endif /* i386 && USE_MMX */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"", at progbits
++#endif
+--- smpeg-0.4.4/video/mmxidct_asm.S
++++ smpeg-0.4.4/video/mmxidct_asm.S
+@@ -673,3 +673,7 @@
+ 
+ 
+ #endif /* i386 && USE_MMX */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"", at progbits
++#endif
================================================================


More information about the pld-cvs-commit mailing list