From nobody Tue Jan 24 22:13:01 2023 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 4P1h7220g1z3bg2S; Tue, 24 Jan 2023 22:13:02 +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 4P1h7213Jvz3FYp; Tue, 24 Jan 2023 22:13:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598382; 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=dVOOPtgit8d2uStYMUt/Revt0Plf5OkOIhB3bu2s5UE=; b=SHOqmdg95VRVA8UjC1o/oprTMxtqCYK+4U8VHS8I5NZsD2afgiq/9l+Qr9fWtog/RHzwp1 0JnbqMCG7CUiQFTjsX2dBd0J7iV9IwuQ+9f4l6EWdXI5U2Mx88KYfXeHbfFcQFbVKhhd3U 5jGfbDtxdgR0VJTxCfnPhUoL68O4bvm2iLi30Fhnd/lZdyTm302zqcMvkvKp/qxW/jQUqo NCndxP1RKA+mpYcG4aqf3euR0ObVTaHP5bCxcOJ2w8SuyJwOY4twNfswQTyl5G/DoeECKg j+n8CASOpdWIaadlWqJWwAPgmBq+NgkdhhZgcNEt991xA0X5EFDkluVMWOF2Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674598382; 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=dVOOPtgit8d2uStYMUt/Revt0Plf5OkOIhB3bu2s5UE=; b=gUaM0+rh9tgfjG+Ei+B65nkXdE9ORidPQD2GuI06c+WOhwuOyZv/trSnQ9vWBRb3522/7M k9lwv7USwLzebAEKhqMmgmQyLPPkpaluZyI4Jy6Bx5kiFLstyVtKugvHp3kdDtHLPa2SYa I5wmqUUK3xW2thXKmvy95+RFALYu4xtkArKExbd0d0a65gwXUleMO4+eDUHg4JKVAEth0o pOmG7jgEUrrdfSIu3QaycGjz4cc4D0Ezlfy3zIifRQmIV52pVItjMcnQWTmchj3FUgOxdU S3FgbeYgzj04zBfsesq2mo+GXiBOZNrZ9KWA9Vf41Squ4UxIhmvcZ8xiqw0pqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674598382; a=rsa-sha256; cv=none; b=HUQP+ikocKKdM+0KPuWpOHHydUOnHOj6lA5WdtTiB+VFrBD8WlolZXX1gNQ24OUMf/Q1KF p5O2cs2lWcuZ4N86EVzLqd92a6yECb7Kt92Y516jo0Fzm9Sf/cwwpHUbrbY4KW5PTXhZnV ZNEGfDj8gu+7QnZjGd1DQF9aRvsF6njCUGbnF7TObQLRWaw6Oj4/Xci4q0gwwtwO9zeKgN BVm5yaeBvM5hd/LBZa+eje7cMl++BuaJJNWAfCS00KlfaNeMfeEEBQxRlFsrNRRZgfriOg P0yRLK+qQQ2QwmKMs8+zZh/FTgCMFov4Vy6hmefYhbuNe84ylkM8R4kc3T/mHg== 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 4P1h7206TvzQVm; Tue, 24 Jan 2023 22:13:02 +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 30OMD175087852; Tue, 24 Jan 2023 22:13:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30OMD1ox087851; Tue, 24 Jan 2023 22:13:01 GMT (envelope-from git) Date: Tue, 24 Jan 2023 22:13:01 GMT Message-Id: <202301242213.30OMD1ox087851@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 45e293c9b335 - stable/13 - 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 45e293c9b3359c0a67b27ad13bfe6a6b62916d8d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=45e293c9b3359c0a67b27ad13bfe6a6b62916d8d commit 45e293c9b3359c0a67b27ad13bfe6a6b62916d8d Author: John Baldwin AuthorDate: 2022-11-22 16:36:40 +0000 Commit: Warner Losh CommitDate: 2023-01-24 21:49:37 +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. (cherry picked from commit 69f6399c3733d717bc3dcefda7fcc031f06cef0d) --- 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