From nobody Thu May 2 06:30:35 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+78898+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+78898+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=posteo.de ARC-Seal: i=1; a=rsa-sha256; t=1628451644; cv=none; d=zohomail.com; s=zohoarc; b=BV52OXFDMo5vbwKCHwDmZ7CyrLhOVD0VPDDOv02cZLFP24o2w9Tv78PNyYu5/tdHJq6DV/DPa3bgEBUW8P+qMbzYrEdJJnR/PxyaBxD47qWn4p+u4qn0Gb9N+eB/+Ds9Br1qlabmzxSZSssdJlwDWJ5uADBgB6FyyfvDr18yqDI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628451644; h=Content-Type: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=7DGf1AP5suOnTuyy9HbgWTXfeGRTZeV+kmEstdN5VHw=; b=YsJcRlRhuLZQr0ynljQakR8oO9ng/pl6+4JuTH9AHVQoCjzsgIz4PvnSXPP+aMsGLOmhkofLl0y3LVIMUtA3PmOrhBZuEg5rJvMt1Dtsi97nkg4kVnYAnc2v/zVqws5Y4hF0tvo3bmsUIU/d676/0s9omVN69qxll8t7fItYfyc= 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+78898+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 1628451644384226.05706251916558; Sun, 8 Aug 2021 12:40:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id v32GYY1788612xCBDrgTA4RY; Sun, 08 Aug 2021 12:40:44 -0700 X-Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by mx.groups.io with SMTP id smtpd.web12.13820.1628451643226847694 for ; Sun, 08 Aug 2021 12:40:43 -0700 X-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A9ABE240029 for ; Sun, 8 Aug 2021 21:40:41 +0200 (CEST) X-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GjV1j1FQDz6tmD; Sun, 8 Aug 2021 21:40:41 +0200 (CEST) From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar , Vitaly Cheptsov Subject: [edk2-devel] [PATCH] UefiCpuPkg/BaseUefiCpuLib: Use toolchain-specific rodata section name Date: Sun, 8 Aug 2021 19:39:57 +0000 Message-Id: <34c8c87e673ce08bef460179c5cb7b3ea9271208.1628356432.git.mhaeuser@posteo.de> In-Reply-To: <252525969122e83d9fb9b83edc95c4f6dfd233b4.1628356432.git.mhaeuser@posteo.de> References: <252525969122e83d9fb9b83edc95c4f6dfd233b4.1628356432.git.mhaeuser@posteo.de> 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,mhaeuser@posteo.de X-Gm-Message-State: dl39PUq2CjpmwEOLJZW92ZQxx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1628451644; bh=nlIN68tsYx7QLi+YX7csDH92nkU3F91fdO4o+wJnMEA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=RYOrKCNRmaCvKH/abSjFfstOGRb/YcjQuKWo4Rym+IBKbe86O5D7bbEql94uf+zRbtl u+35d5XtgivNCWpU+4LHZSSoZdkhrPZbH/4ljrl3nhigi+OqQ06OxWS5kfIv7+Eky++v7 HH3Wq0geBKWr83SkO+NwpZ4osejyCFpJjnk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1628451645995100085 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3318 Correctly define the read-only data sections with the toolchain-specific section name. This hardens image permission security and may save image space. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Vitaly Cheptsov Signed-off-by: Marvin H=C3=A4user --- UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm | 2 +- UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm b/Ue= fiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm index 5e27cc325012..cfb8bf4a5ae0 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/InitializeFpu.nasm @@ -6,7 +6,7 @@ ;* ;-------------------------------------------------------------------------= ----- =20 - SECTION .rodata + SECTION RODATA_SECTION_NAME =20 ; ; Float control word initial value: diff --git a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm b/Uef= iCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm index 8485b4713548..3c976a21e391 100644 --- a/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm +++ b/UefiCpuPkg/Library/BaseUefiCpuLib/X64/InitializeFpu.nasm @@ -6,7 +6,7 @@ ;* ;-------------------------------------------------------------------------= ----- =20 - SECTION .rodata + SECTION RODATA_SECTION_NAME ; ; Float control word initial value: ; all exceptions masked, double-extended-precision, round-to-nearest --=20 2.31.1 -=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 (#78898): https://edk2.groups.io/g/devel/message/78898 Mute This Topic: https://groups.io/mt/84754073/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-