Fix for https://github.com/atgreen/libffi/issues/141
authorJames Greenhalgh <james.greenhalgh@arm.com>
Sun, 7 Dec 2014 04:58:41 +0000 (23:58 -0500)
committerAnthony Green <green@moxielogic.com>
Sun, 7 Dec 2014 04:58:41 +0000 (23:58 -0500)
src/aarch64/sysv.S

index 1fb68f2..5c9cdda 100644 (file)
@@ -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
+