summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-22 10:55:25 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-10-22 10:55:25 +0000
commit63a9b8b0679903ca1cfc17daf0a881c74a6ef1a0 (patch)
tree58b99908282a070d518d31384c00f28338dc73b3
parente67b3497c95c7ce869f8d4f25934d57f56fb2557 (diff)
downloadcpython-git-63a9b8b0679903ca1cfc17daf0a881c74a6ef1a0.tar.gz
- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
ctypes isn't considered as requiring executable stacks.
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/_ctypes/libffi/src/x86/sysv.S4
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 7313802399..0b7fdc376e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,9 @@ Core and builtins
Extension Modules
-----------------
+- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that
+ ctypes isn't considered as requiring executable stacks.
+
- Bug #1567666: Emulate GetFileAttributesExA for Win95.
- Bug #1548891: The cStringIO.StringIO() constructor now encodes unicode
diff --git a/Modules/_ctypes/libffi/src/x86/sysv.S b/Modules/_ctypes/libffi/src/x86/sysv.S
index 46759f4349..9542fba1a2 100644
--- a/Modules/_ctypes/libffi/src/x86/sysv.S
+++ b/Modules/_ctypes/libffi/src/x86/sysv.S
@@ -376,3 +376,7 @@ ffi_closure_raw_SYSV:
#endif
#endif /* ifndef __x86_64__ */
+
+#ifdef __ELF__
+.section .note.GNU-stack,"",%progbits
+#endif