Commit 05c31093409f7b3e6d795fac21d2c954313d8162

Konstantin Belousov 2013-11-06T06:40:58

Mark executable as not requiring executable stack.

diff --git a/ChangeLog b/ChangeLog
index 2c3360e..29a4dba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-06  Konstantin Belousov <kib@freebsd.org>
+
+	* src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
+	source as not requiring executable stack.
+
 2013-11-02  Anthony Green  <green@moxielogic.com>
 
 	* doc/libffi.texi (The Basics): Clarify return value buffer size
diff --git a/src/x86/freebsd.S b/src/x86/freebsd.S
index afde513..504349a 100644
--- a/src/x86/freebsd.S
+++ b/src/x86/freebsd.S
@@ -456,3 +456,5 @@ ffi_closure_raw_SYSV:
 #endif
 
 #endif /* ifndef __x86_64__ */
+
+	.section .note.GNU-stack,"",%progbits