From nobody Mon Sep 16 19:36:03 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+101936+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101936+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1679914929; cv=none; d=zohomail.com; s=zohoarc; b=MrZ/VoLhNXDIbeMy8EP/yysqI8qJ71j/goMqBcrHZZ7CFeiOpuR4NQn3OIyPPf9fnfhe2AIOf1cgOqkFs1P6d8C3+omCgGBQvnSYiNPzwxFd4hrL0/W4s/FxIAOGsJrzqUmfYtstcHwovRNriJaw+Ic/0nsS2OhTDC7g8PeKxSA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679914929; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=z6S1Ji4xEcwXcrgIDyHAzD/FPa/3085TSgLFSxst5/4=; b=DOJaVbS28k3OrqcJEv9yimxx5wiNWs+V5lOKbDQCj6U4+2xuE2r/rT1h4pnvJcyWTUK6bUC79S4CwoUAKTSCfoOBmA3znVSrVpqY1G+8dlJfRny82WAZozhjVGUg3ocnDAaoYo7kfcZtQZfW2LeKiUEkJosdJZ6PjG6bqbkT2hI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101936+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1679914929580272.605324079929; Mon, 27 Mar 2023 04:02:09 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qsriYY1788612xwdhoGWBcDl; Mon, 27 Mar 2023 04:02:09 -0700 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.31901.1679914928466998722 for ; Mon, 27 Mar 2023 04:02:08 -0700 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B464611A9; Mon, 27 Mar 2023 11:02:08 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5A31C4339B; Mon, 27 Mar 2023 11:02:04 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Michael Kinney , Liming Gao , Jiewen Yao , Michael Kubacki , Sean Brogan , Rebecca Cran , Leif Lindholm , Sami Mujawar , Taylor Beebe , =?UTF-8?q?Marvin=20H=C3=A4user?= , Bob Feng Subject: [edk2-devel] [PATCH v2 12/17] ArmPlatformPkg/PrePeiCore: Make vector table object BTI compatible Date: Mon, 27 Mar 2023 13:01:07 +0200 Message-Id: <20230327110112.262503-13-ardb@kernel.org> In-Reply-To: <20230327110112.262503-1-ardb@kernel.org> References: <20230327110112.262503-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: 4xk9Cf0mQRk1kd17cFO2huz6x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679914929; bh=AXKAuQsYeL/SJDl9Hw1p7pOZC6uaId63VVdowqANE+k=; h=Cc:Date:From:Reply-To:Subject:To; b=iVZO3A7JUOAZRIAhxFjNPJm3QjcCFQ/1afkeifZ7BugKRDG2qv7Pz4NuIp+j8xBKEkC OonzuQrMkRWy4d8nqsMWx4C8P74MRaXcbcg1udEOgGL96bimTWgp/qtCdsAv8m+XbPhH3 etix6Fms4mpx83xl1FwpJNH6Ts/NvN/j3f8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679914931263100002 Content-Type: text/plain; charset="utf-8" The object file containing the vector table does not contain any callable functions, so it will not be implicitly annotated as BTI compatible on BTI builds. So add the annotation by hand, and use the 'empty' type so we get the GNU ELF note but not the actual BTI opcode. Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/PrePeiCore/AArch64/Exception.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S b/ArmPlatformPkg= /PrePeiCore/AArch64/Exception.S index 43e40f97c3eed5ff..5a84fefe3fb55216 100644 --- a/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S +++ b/ArmPlatformPkg/PrePeiCore/AArch64/Exception.S @@ -112,3 +112,5 @@ _DefaultSError_LowerA32: TO_HANDLER =20 VECTOR_END(PeiVectorTable) + +AARCH64_BTI() --=20 2.39.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#101936): https://edk2.groups.io/g/devel/message/101936 Mute This Topic: https://groups.io/mt/97879295/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-