From 9ae3bc870ee07820b60d368f137ea3b5daca850e Mon Sep 17 00:00:00 2001 From: James Greenhalgh Date: Sat, 6 Dec 2014 23:58:41 -0500 Subject: [PATCH] Fix for https://github.com/atgreen/libffi/issues/141 --- src/aarch64/sysv.S | 5 +++++ 1 file changed, 5 insertions(+) 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 +