NON-WORKING python with an older version of the MinGW patch.
[fedora-mingw.git] / python / python-2.5.1-ctypes-exec-stack.patch
diff --git a/python/python-2.5.1-ctypes-exec-stack.patch b/python/python-2.5.1-ctypes-exec-stack.patch
new file mode 100644 (file)
index 0000000..0f5c675
--- /dev/null
@@ -0,0 +1,44 @@
+diff -up Python-2.5.1/Modules/_ctypes/libffi/src/x86/unix64.S.execstack Python-2.5.1/Modules/_ctypes/libffi/src/x86/unix64.S
+--- Python-2.5.1/Modules/_ctypes/libffi/src/x86/unix64.S.execstack     2007-08-10 10:34:06.000000000 +0200
++++ Python-2.5.1/Modules/_ctypes/libffi/src/x86/unix64.S       2007-08-10 10:34:06.000000000 +0200
+@@ -410,3 +410,7 @@ ffi_closure_unix64:
+ .LEFDE3:
+ #endif /* __x86_64__ */
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -up Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/sysv.S.execstack Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/sysv.S
+--- Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/sysv.S.execstack   2007-08-10 10:39:03.000000000 +0200
++++ Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/sysv.S     2007-08-10 10:39:59.000000000 +0200
+@@ -215,3 +215,7 @@ END(ffi_call_SYSV)
+       .align 2
+ .LEFDE1:
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -up Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.S.execstack Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.S
+--- Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.S.execstack        2007-08-10 10:39:23.000000000 +0200
++++ Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64_closure.S  2007-08-10 10:39:58.000000000 +0200
+@@ -204,3 +204,7 @@ ffi_closure_LINUX64:
+       .align 3
+ .LEFDE1:
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
+diff -up Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64.S.execstack Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64.S
+--- Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64.S.execstack        2007-08-10 10:39:13.000000000 +0200
++++ Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/linux64.S  2007-08-10 10:40:01.000000000 +0200
+@@ -178,3 +178,7 @@ ffi_call_LINUX64:
+       .align 3
+ .LEFDE1:
+ #endif
++
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif