From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5573 invoked by alias); 13 Nov 2014 15:32:20 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 5558 invoked by uid 89); 13 Nov 2014 15:32:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Nov 2014 15:32:13 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Thu, 13 Nov 2014 15:32:10 +0000 Received: from e106375-lin.cambridge.arm.com ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Nov 2014 15:32:09 +0000 From: James Greenhalgh To: libffi-discuss@sourceware.org Cc: marcus.shawcroft@arm.com, rth@redhat.com, green@moxielogic.com Subject: [Patch AArch64] Add missing .note.GNU-stack note Date: Thu, 13 Nov 2014 15:32:00 -0000 Message-Id: <1415892722-14244-1-git-send-email-james.greenhalgh@arm.com> MIME-Version: 1.0 X-MC-Unique: 114111315321012001 Content-Type: multipart/mixed; boundary="------------1.8.3-rc0" X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00223.txt.bz2 This is a multi-part message in MIME format. --------------1.8.3-rc0 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable Content-length: 390 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 * aarch64/sysv.S: Add .note.GNU-stack. --------------1.8.3-rc0 Content-Type: text/x-patch; name=0001-Patch-AArch64-Add-missing-.note.GNU-stack-note.patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-Patch-AArch64-Add-missing-.note.GNU-stack-note.patch" Content-length: 379 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= --------------1.8.3-rc0--