From: Martin v. Löwis Date: Sun, 22 Oct 2006 10:55:15 +0000 (+0000) Subject: - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that X-Git-Tag: v2.6a1~2539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b2f627f96cdabcb4414b4785fcaf8bc309b941b;p=python - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that ctypes isn't considered as requiring executable stacks. Will backport to 2.5. --- diff --git a/Misc/NEWS b/Misc/NEWS index e311bad80c..f78ddb0305 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -81,6 +81,9 @@ Core and builtins Library ------- +- Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that + ctypes isn't considered as requiring executable stacks. + - ctypes callback functions only support 'fundamental' data types as result type. Raise an error when something else is used. This is a partial fix for Bug #1574584. 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