From nobody Mon Feb 9 16:45:09 2026 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+102974+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+102974+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1681459386; cv=none; d=zohomail.com; s=zohoarc; b=LAhbT8aRKxsNYhN1TzPm8jLtglViRX2GXDdcqxHKsgD7Kt4/GN8AMzVMd6E+2eJu9OfuSjC2DOMsguKlDxdxtUjVQkNr4Yr71Wc4x0lZFfiR9UxIGb+EgGaHFuM8tW7L1VAyilCvXwvG2tHzmlv99unBDOySBRZRgb88z8oCP1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681459386; 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=9RiuUz5rgEkTrQ5wDErDAOHaBLxNa1jSiMbf9Dn8u44=; b=HTP4NhFJAby4Ld9XQOa8AN2Oh0o5bg16Q01KOAc5FZYNGrgTq/xNoS3m18dDnP1wrRyM0AbJSlJtiM+I6Kc25IRyv58sQCHpZ0Z606X7BVZeJAElco4RS/K3wvXTDdgNi8pSsGzoiy4OixX00z8X9qqy2DIxr9Ftjuk2KY/H/xg= 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+102974+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 1681459386562285.9684244649494; Fri, 14 Apr 2023 01:03:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id G9ZxYY1788612xKyE2RsOfru; Fri, 14 Apr 2023 01:03:06 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.4130.1681459384878906506 for ; Fri, 14 Apr 2023 01:03:05 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-665-qQ-VpR6TOkugqEs3c2szMw-1; Fri, 14 Apr 2023 04:03:03 -0400 X-MC-Unique: qQ-VpR6TOkugqEs3c2szMw-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E402185A78F; Fri, 14 Apr 2023 08:03:02 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12E26C16028; Fri, 14 Apr 2023 08:03:02 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B726A18003A8; Fri, 14 Apr 2023 10:02:50 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Dongyan Qian , Sunil V L , Baoqi Zhang , Chao Li , Rebecca Cran , Ard Biesheuvel , Zhiguang Liu , Liming Gao , Yuwei Chen , =?UTF-8?q?Marvin=20H=C3=A4user?= , Leif Lindholm , Michael D Kinney , Daniel Schaefer , Bob Feng , Oliver Steffen , Gerd Hoffmann Subject: [edk2-devel] [PATCH v4 06/10] MdePkg/PeImage.h: add bits from BaseTools version Date: Fri, 14 Apr 2023 10:02:46 +0200 Message-Id: <20230414080250.1357004-7-kraxel@redhat.com> In-Reply-To: <20230414080250.1357004-1-kraxel@redhat.com> References: <20230414080250.1357004-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,kraxel@redhat.com X-Gm-Message-State: iWuN3p7395U66aEYVDgYw6Nbx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1681459386; bh=Emrt3E4FrqUZyg/6bvA4ifMnD6qRYSoQr6CN7A5RKeI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vt8TQnDJDP9NZxPS7k2nX6C7v0PCIwb3ugep8leGTa4GXW+D583R1jJMbiEc/sDxxtz sftTAOoIzDgps8QpKwA9xy50PVNCEuoKk7jh7Omtb8kgTotGfOOxG+h9QWiu7vGTMqme8 3a70QRsZqCr4w/Vs45vWL/+xRGArS3W0pgE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1681459388338100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The BaseTools and MdePkg versions of PeImage.h diverged over time, add some missing bits to the MdePkg header file in preparation for removing the BaseTools version. Signed-off-by: Gerd Hoffmann --- MdePkg/Include/IndustryStandard/PeImage.h | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/PeImage.h b/MdePkg/Include/Ind= ustryStandard/PeImage.h index 8646ff22b55f..47037049348c 100644 --- a/MdePkg/Include/IndustryStandard/PeImage.h +++ b/MdePkg/Include/IndustryStandard/PeImage.h @@ -101,6 +101,7 @@ typedef struct { #define EFI_IMAGE_FILE_EXECUTABLE_IMAGE BIT1 ///< 0x0002 File is = executable (i.e. no unresolved externel references). #define EFI_IMAGE_FILE_LINE_NUMS_STRIPPED BIT2 ///< 0x0004 Line num= bers stripped from file. #define EFI_IMAGE_FILE_LOCAL_SYMS_STRIPPED BIT3 ///< 0x0008 Local sy= mbols stripped from file. +#define EFI_IMAGE_FILE_LARGE_ADDRESS_AWARE BIT5 ///< 0x0020 Supports= addresses > 2-GB #define EFI_IMAGE_FILE_BYTES_REVERSED_LO BIT7 ///< 0x0080 Bytes of= machine word are reversed. #define EFI_IMAGE_FILE_32BIT_MACHINE BIT8 ///< 0x0100 32 bit w= ord machine. #define EFI_IMAGE_FILE_DEBUG_STRIPPED BIT9 ///< 0x0200 Debuggin= g info stripped from file in .DBG file. @@ -577,6 +578,13 @@ typedef struct { UINT32 AddressOfNameOrdinals; } EFI_IMAGE_EXPORT_DIRECTORY; =20 +// +// Based export types. +// +#define EFI_IMAGE_EXPORT_ORDINAL_BASE 1 +#define EFI_IMAGE_EXPORT_ADDR_SIZE 4 +#define EFI_IMAGE_EXPORT_ORDINAL_SIZE 2 + /// /// Hint/Name Table. /// @@ -670,6 +678,29 @@ typedef struct { // } EFI_IMAGE_DEBUG_CODEVIEW_MTOC_ENTRY; =20 +// avoid conflict with windows header files +#ifndef RUNTIME_FUNCTION_INDIRECT + +// +// .pdata entries for X64 +// +typedef struct { + UINT32 FunctionStartAddress; + UINT32 FunctionEndAddress; + UINT32 UnwindInfoAddress; +} RUNTIME_FUNCTION; + +#endif + +typedef struct { + UINT8 Version : 3; + UINT8 Flags : 5; + UINT8 SizeOfProlog; + UINT8 CountOfUnwindCodes; + UINT8 FrameRegister : 4; + UINT8 FrameRegisterOffset : 4; +} UNWIND_INFO; + /// /// Extended DLL Characteristics /// --=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 (#102974): https://edk2.groups.io/g/devel/message/102974 Mute This Topic: https://groups.io/mt/98257898/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-