This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
[Patch AArch64] Add missing .note.GNU-stack note
- From: James Greenhalgh <james dot greenhalgh at arm dot com>
- To: libffi-discuss at sourceware dot org
- Cc: marcus dot shawcroft at arm dot com, rth at redhat dot com, green at moxielogic dot com
- Date: Thu, 13 Nov 2014 15:32:02 +0000
- Subject: [Patch AArch64] Add missing .note.GNU-stack note
- Authentication-results: sourceware.org; auth=none
Hi Anthony,
This trivial patch fixes:
https://github.com/atgreen/libffi/issues/141
By adding a .note.GNU-stack note to the bottom of src/aarch64/sysv.S.
Tested native on aarch64-none-linux-gnu, with no issues in the testsuite.
Could you please apply this to HEAD?
Thanks,
James
---
2014-11-13 James Greenhalgh <james.greenhalgh@arm.com>
* aarch64/sysv.S: Add .note.GNU-stack.
diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S
index 1fb68f2..d5b1c2e 100644
--- a/src/aarch64/sysv.S
+++ b/src/aarch64/sysv.S
@@ -396,3 +396,7 @@ 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