Commit 9ae3bc870ee07820b60d368f137ea3b5daca850e

James Greenhalgh 2014-12-06T23:58:41

Fix for https://github.com/atgreen/libffi/issues/141

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S
index 1fb68f2..5c9cdda 100644
--- a/src/aarch64/sysv.S
+++ b/src/aarch64/sysv.S
@@ -396,3 +396,8 @@ CNAME(ffi_go_closure_SYSV):
 	.size	CNAME(ffi_go_closure_SYSV), . - CNAME(ffi_go_closure_SYSV)
 #endif
 #endif /* FFI_GO_CLOSURES */
+
+#if defined __ELF__ && defined __linux__
+	.section .note.GNU-stack,"",%progbits
+#endif
+