From nobody Tue Nov 22 16:37:47 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NGqgH41FJz4j2bJ; Tue, 22 Nov 2022 16:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGqgH3QkLz3LdV; Tue, 22 Nov 2022 16:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669135067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xTlYO9rbK8bYN6yQzmKXTFC6Kgp6dfiPOwCm77OSPA4=; b=oVtDCRwWcXOptrKFKhLFQOLbalsZdL8u6tsZ/8PPL7+9sWpTGiglexJ+XVxVxJa9mJIAWQ Oi+X2PSRbx9W3/A9tPh89tMas+uwK5MJMpqVpiMROO7sdM7TWRJGjzkz68z3nUOop3klaj qFlZfecFIQRLyfdLKlzLA3RZlLyDMZAGTBwaXCFn7v98g8GfCQvNyC9FP+ywBqqQZUVS+J q+/Ssy9HF0K03OFVGR7z9Jc8UZbPRjWlK4bneWyQcVFUJvbM4Crk12o6J+Qx0ROmgM2Lts di/Gi7rhoWlVRUgvbD57SOyFmrusMceksi45NpDde9gAKAVEGP4It7pj3thtUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669135067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xTlYO9rbK8bYN6yQzmKXTFC6Kgp6dfiPOwCm77OSPA4=; b=om8FIl536uGhcJf0PDFk/asbPOLcHtOq5/uA0VkxjAjaRwUDuDzV0w4BLV3AkTj7CqD+dU njr1BEZ6LYc1yngWktNue6p7XPF0mL6Xm7Ktn6s+RXTqOUw1opaZ3iHFtp4g6smw589Uei I/6utvpSxqvWmyZrFt2/N7za5Z244U/GEVLYP7Qoc+L30bVjdpVg9qTKDLetrZ3Js8SLVE hXt/lq+WoILAA2kBnInYyAOnSbaip2KKdcAUEX+ay8WWjO6a8o2bZWV8xRvJResHLMSH00 c+ZvZyll284LRviOQviFUmki97yUUI9JHa9KAg2tz+ARtLf/KDBbSwS+PeNrbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669135067; a=rsa-sha256; cv=none; b=MUzwPJcCAMSaFmB0DJgOt8vYZJtLm/4Mxs4nq9EQU/xg10j4ud9tZaPgB9Er+0WsUHwCVr +oKgye89ZwJZ7zaWGoLA+LO5eGgLA29DPs00ULijw/bYHO43OwQND1c1sH5FQFPgmQzW4m ETvkP2gROynUcJF5LzVvDpnizhxRU+GI3OzN5ymJ8lA2GabfVj6Nzkt4trro8qNkt5rIlG +4BG7XrjjGyaZq1zU+WNSZtPlCciH3j3JcEmciH/V/MssyFdZn8a1Jft1ENgajnDp32yeH 6k+/VFq5Q4e7nD0WZ3yDXuhK9k27HihKZuozklc5kNv7GRKrCI04J6gqakBv7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NGqgH2XP2zq8q; Tue, 22 Nov 2022 16:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AMGblnW054566; Tue, 22 Nov 2022 16:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AMGblRN054565; Tue, 22 Nov 2022 16:37:47 GMT (envelope-from git) Date: Tue, 22 Nov 2022 16:37:47 GMT Message-Id: <202211221637.2AMGblRN054565@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 69f6399c3733 - main - libsa: Add missing GNU-stack annotations to _setjmp.S. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 69f6399c3733d717bc3dcefda7fcc031f06cef0d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=69f6399c3733d717bc3dcefda7fcc031f06cef0d commit 69f6399c3733d717bc3dcefda7fcc031f06cef0d Author: John Baldwin AuthorDate: 2022-11-22 16:36:40 +0000 Commit: John Baldwin CommitDate: 2022-11-22 16:36:40 +0000 libsa: Add missing GNU-stack annotations to _setjmp.S. ld.bfd marks the stack as executable for the crt objects due to the missing annotations which raises a fatal warning starting with version 2.39. --- stand/libsa/amd64/_setjmp.S | 2 ++ stand/libsa/i386/_setjmp.S | 2 ++ stand/libsa/powerpc/_setjmp.S | 2 ++ 3 files changed, 6 insertions(+) diff --git a/stand/libsa/amd64/_setjmp.S b/stand/libsa/amd64/_setjmp.S index 53ea6e9b5d52..38f27dc1968d 100644 --- a/stand/libsa/amd64/_setjmp.S +++ b/stand/libsa/amd64/_setjmp.S @@ -90,3 +90,5 @@ ENTRY(_longjmp) 1: movq %rcx,0(%rsp) ret END(_longjmp) + + .section .note.GNU-stack,"",%progbits diff --git a/stand/libsa/i386/_setjmp.S b/stand/libsa/i386/_setjmp.S index 95b0ea8037f5..5766b25816ae 100644 --- a/stand/libsa/i386/_setjmp.S +++ b/stand/libsa/i386/_setjmp.S @@ -75,3 +75,5 @@ ENTRY(_longjmp) 1: movl %ecx,0(%esp) ret END(_longjmp) + + .section .note.GNU-stack,"",%progbits diff --git a/stand/libsa/powerpc/_setjmp.S b/stand/libsa/powerpc/_setjmp.S index 485050f003a1..c36f2e6a6b87 100644 --- a/stand/libsa/powerpc/_setjmp.S +++ b/stand/libsa/powerpc/_setjmp.S @@ -115,3 +115,5 @@ ASENTRY_NOPROF(_longjmp) mr 3, 4 blr ASEND(_longjmp) + + .section .note.GNU-stack,"",%progbits