From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by mx.groups.io with SMTP id smtpd.web11.6384.1675413269717738182 for ; Fri, 03 Feb 2023 00:34:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@posteo.de header.s=2017 header.b=LXy1gpoo; spf=pass (domain: posteo.de, ip: 185.67.36.65, mailfrom: mhaeuser@posteo.de) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 991A82401D2 for ; Fri, 3 Feb 2023 09:34:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1675413267; bh=nV0Oy1zw03ZjK9at7JxdWylhVfKKuOhgAojASyBpaL4=; h=From:Subject:Date:Cc:To:From; b=LXy1gpooe32VOQcpEsDJPW4eOzcgJJXrac0vbcQ8bzHRNJs1JaSt5eqz4Zop5d9TG 2jq/llcD8gYm0h8EZZ71aat+MKtUTJ8GuYB0kVV6lHKxVPjQnTfXFtr90oUQ4fqNMq IKXqnCijolecKFYxLMDApBWNt86DhjnqGgadeXOPhIoAYIdJ5ycninRjxabDidq6IE aZjSYYBIIRZgMKKALauTqt/rPsuB3jk9SNb9ng7EfEZLVao3k94fItDj8tejzW512l CPQCMEe4kiStgW7yRE9ziH+e/KLMadM763R3Z/UkaLPp3Y2hA4x8jq+20B1FemI8ej FRqLv9GHyl84A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P7TTt40Zkz9rxD; Fri, 3 Feb 2023 09:34:26 +0100 (CET) From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= Mime-Version: 1.0 (1.0) Subject: Re: [edk2-devel] [RFC PATCH 2/3] MdeModulePkg: Enable forward edge CFI in mem attributes table Date: Fri, 3 Feb 2023 08:34:26 +0000 Message-Id: <078B9F5E-E32C-46F1-B0DC-30C138CAA835@posteo.de> References: Cc: devel@edk2.groups.io In-Reply-To: To: Ard Biesheuvel Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sorry, forgot to ask (and it=E2=80=99s probably obvious), but there is a san= e tag for ELFs that could be translated to the potential new PE tag, right? = For both GCC and Clang builds? > On 3. Feb 2023, at 09:28, Ard Biesheuvel wrote: >=20 > =EF=BB=BFOn Fri, 3 Feb 2023 at 09:25, Marvin H=C3=A4user wrote: >>=20 >> Hi Ard, >>=20 >> Short story: No, TE is not a concern for RT drivers, at least not upstrea= m [1]. >>=20 >> Long story: Even if a downstream added support for RT relocation itself, T= E images are loaded misaligned by DxeCore, because it lacks a (terrible) wor= karound as done in PeiCore [2]. It doesn=E2=80=99t look like anyone tried to= use them in DXE at all. >>=20 >> Best regards, >> Marvin >>=20 >> [1] https://github.com/tianocore/edk2/blob/11f0014c0e3046e3762eac420b7600= 91d0cdc063/MdePkg/Library/BasePeCoffLib/BasePeCoff.c#L1759 >>=20 >> [2] https://github.com/tianocore/edk2/blob/11f0014c0e3046e3762eac420b7600= 91d0cdc063/MdeModulePkg/Core/Pei/Image/Image.c#L412 >=20 > Ah thanks for digging that up. >=20 > So all the more reason to add this to the PE/COFF spec rather than > anywhere else.