From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web08.6261.1622119866770576328 for ; Thu, 27 May 2021 05:51:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=TW2nlQc3; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: ray.ni@intel.com) IronPort-SDR: WOsIwPwDIYF1YnK6/spCGAyONX5EMf5+hdUV773vF8ajY5MOxrHtV3lrssBVzHSoXqjIvV1Jnd BUqriDU4e+bA== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="202758530" X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="202758530" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2021 05:51:05 -0700 IronPort-SDR: xGsE7BMqC1/sOjViIXpeNhaq1eLXopRjTAZUf5SN6E6BMzgDv5AbX2NhQiOg41H84q5ZZ05u9e pkwtvs1NQlzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="472503722" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 27 May 2021 05:51:04 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 27 May 2021 05:51:04 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 27 May 2021 05:51:04 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Thu, 27 May 2021 05:51:04 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 27 May 2021 05:51:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XKPpz7Pqu3tZCLeUQvaegxQBGfshymnO3Uw+IdeqjHKaL+TsEy/z34eiu6UlsAOtkbD72ZtIPawOcG+uO+/sngDfeRYwOb+k2D1bLQbjG9dd04qbfEdmc3ReqNhRfYlLNcgK4QRuWsd5F8ryWBxDoNLcl+Nd8z80E4SCR8l7y0Q5zUTYqbn8Y6Bdyl6PyJOzeV8eVHSb3cWVwsXbdOBftpbEFnA4jRO90XSYDEwQ6OSt483bMEljDKeO14nAuWq0Lxv5xfF5cbt4u0ACD//wo+llYugCyH5Oy4UVmQHjWYFcnMVXaTSj/CZg6bI4qAxHPShu5pW/AVNPmsPO9C6LSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=poyQqnPrSQuYwWSzlhNNKxD8lZEd+Ul55FzA/ak/mf8=; b=XBFinjvhPvWSEUnaSJAFXWhu8MEnAB4VGriNP2820EXYbmfiZ8oLjUEUCv4btQiSR+Mjjnqc6UnM9IQ04ak85PinEkhhyfRvAGEJyIUuHJ6N19O9lLr76+EQIelg0U+plxip6YGEHaj+y+f6WjfvUWxlvWxl9azSK6qTWNr1kxIFNiobKb2BTiLvQAUttOVABMR1LpUJS5iprQ1pcDYhYNI/oc5w57MSUUbiYRhuRiSFKs4IYSxDApCjfU47o0L9t+ewgfNFL8HaFsf5vBahtDWASvXTJiqlbKV43ZA8/fxZJe+X+4YdFTa1Q39tQiyMwGWCqQV37U+rFh3tB28srw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=poyQqnPrSQuYwWSzlhNNKxD8lZEd+Ul55FzA/ak/mf8=; b=TW2nlQc37oAqBl6CagOIzV+m+tD3VrOiEuvIQJZVkXoK2sao5/b2lLHPyBLVjpv6U9yWEmSvyk3I5kfz6Ff2z7mIlYM2zb8WcB3YDYaCXHy/NZuVrowh+GT5tSe8SFGpjr5DeRW7+CFz3zUxE07gA3zFUJcAHwBa1JAUpHXSt74= Received: from CO1PR11MB4930.namprd11.prod.outlook.com (2603:10b6:303:9b::11) by MWHPR11MB1837.namprd11.prod.outlook.com (2603:10b6:300:10f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20; Thu, 27 May 2021 12:51:03 +0000 Received: from CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::59d6:8b94:55bf:36e7]) by CO1PR11MB4930.namprd11.prod.outlook.com ([fe80::59d6:8b94:55bf:36e7%5]) with mapi id 15.20.4173.022; Thu, 27 May 2021 12:51:03 +0000 From: "Ni, Ray" To: "Shi, Steven" , "devel@edk2.groups.io" Subject: Re: [edk2-devel] [PATCH 0/4] Support payload in ELF format Thread-Topic: [edk2-devel] [PATCH 0/4] Support payload in ELF format Thread-Index: AQHXUgh+KbQoLmMutk2UkQi67jF5Yar1kaWwgAG31ZA= Date: Thu, 27 May 2021 12:51:03 +0000 Message-ID: References: <20210526082310.1597-1-ray.ni@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [124.77.195.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 663230ab-8de2-4e10-21f1-08d9210e15fe x-ms-traffictypediagnostic: MWHPR11MB1837: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZK++bTeDCJ0C6lB05a8zdihXbmAxh4+bRUCMxx3Xqh4dwhDUCrg1akSo61AFIEaKz4mb/sWh/UxQK6HrbQ9YV4iNzr+dLWtCH8w0WcZo3QBDoYDM/jemE7SuOoWr0L/eVzx0VpiJUTfpbvicpuXc9WQ7BXup14CmQ6p7TJk4i5j6/ORujuc2F80d99+B/bodhkBU+oV2C2UfmZc16nYFNSjiSoQ+14zUg8F7z2xhBpXybmCm7it6H53DIvgbvjoSLKZWKF4DMOUiJEPK5Z4mrplPmpvbfdgXjrc1gitDfWHUR07cv3R3NWsKCaeTUKk8wg4RgHaBoIvoveQQOcSHySLJPIutDa6qqbD2onenTxnE79mggTvh8ZlkDQ6XcAWEWGhbBxh9ArwhS0YsC6boycyakZOYjbPvzxSYfLAYTvD8WMMVgQXI8HchkQlCWoonJ9c6mRqmjDD1sW76Fyf0V8m3SU8inVBp0lvulQDPP/tva818SAk0/Yg0WZ6lTiE6AuzNvE5zKkaUn4iHxxuKV+nLJMfZdkEzAIrTKKNnyFFWLC052f5K6EkZia6nmSQDW4Kp33A+srAHuAB7C2NWeEwiiZb9tcM6GbGBxGuA21T7lK/jXEIRYOORlmxy1VSoHSLchnCP+/RGWZuorAdj8OWGfF6aRTF5QeT9O5fqrHbM0edZQJNInEVTk4weEtUcOoo5NNECplW+gipiEKdveHl3ah8kWGdE7aOgxkGclWA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4930.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(366004)(346002)(376002)(39860400002)(66446008)(478600001)(110136005)(52536014)(66476007)(55016002)(66946007)(66556008)(316002)(71200400001)(5660300002)(19627235002)(38100700002)(186003)(26005)(86362001)(6506007)(53546011)(9686003)(33656002)(8676002)(7696005)(966005)(2906002)(122000001)(64756008)(76116006)(8936002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?vMyBsd4zfLu/hHU0KCIXNRDyhvVmGrf3WXoX99bhgLMdAgSzuKhsPvy2w7Yt?= =?us-ascii?Q?EZCZGf9/WFd11LlyzMBu7ISw9OZooAQ0DtOCDhXyokJdhA+170yGYq5H2r3f?= =?us-ascii?Q?XgG5q4HVRrwICXBYd8npaalAuWSgkP46VdykMVgaO2a1eBkqm6zNnNQhhvrc?= =?us-ascii?Q?HbRTCAxRnVsTnfDlsCKAyyhWmJ8CCd2JcSSwsiYO+1cNd4FZ0W06+qEdlf2M?= =?us-ascii?Q?rz92Yce0SkGu0SXmJUGb1ZLZaGpxyjk9hlD/9A6YAqLvLNZbsprAqJRBi/C1?= =?us-ascii?Q?PXXHtBoIgRMMNItFGbTChUMjk9Xtq1TONpAlR7gfkuXNIhGY7KB2C3FcTPu7?= =?us-ascii?Q?88mErUi8RztH0XUZziMGoMGyg7SvKCcBFsXYRTLV3RFHKVzzgT4fEVZwH4Ad?= =?us-ascii?Q?juJeQ7JwK42RXxDcVQuiozL43Wmg3UsMy1yiwkb5uVk1WZaCMb4bCAKVuzFN?= =?us-ascii?Q?uPNk98iU4UhIwKUkiJJQnYHgtOl1lXKvtc/GzT9ULC4ah6L8/P7vPuRpKdtn?= =?us-ascii?Q?X64OFNg7FYiJwkyoZA3QLeEe6tD6o4SHhNOpNc1zAuzvbPk+EBKt9yNSx6KT?= =?us-ascii?Q?Tl6xW6e3leUkjs9iNciXSEGzHl7gcsm/mdYaWIDKWSqV4DVQXC7hv32O3PhY?= =?us-ascii?Q?6HGfqU085EYFWy40A/s1V8M65nV51w5n37bugl+g9hGYFBEEz2cPf938cdy1?= =?us-ascii?Q?Si9Rw2JkyswbnJqJqL7OngvaPVETwflvTddwm+Z1N74a/W7eSGKm61jeg4zx?= =?us-ascii?Q?uxT9y2CdzGo5WPuQ14LudW6FIh3Oc2sXB/ulT7BEA467NaPxR1PR6h68Edj2?= =?us-ascii?Q?TXJC6hqiSY/1pti/pQUtlKZprE5aXvY0wetxlTnVIGAHR1ZeheuVh8dsj9Vh?= =?us-ascii?Q?uylyv6/vOmUsD+vCVFG1uGRDIPZG4gbrgLxdh7vv8+Oy11WgdKayPIuRj8x3?= =?us-ascii?Q?MimJUKM8Rl7P3lm8ftIoTxrN0jp29oJqQldCtZ+raC0ql6/FGfIMW/rh8Zqv?= =?us-ascii?Q?5Mg5nYgxvKdYRyosIslZMx554TAFDOE0zv6W4lH/0ZVxJ0Q5UQ8VsaQoJco8?= =?us-ascii?Q?oEhDgDYhqCNJASI5GowW0VaSXdS6VbP7bbs84egBELX1RL1NEPT9D2xR6+HJ?= =?us-ascii?Q?wImmr+/oGgRDuUHQN4DV9AIdvrBaQQFAGRyQ/CtBY0IuYsLn0eGBuNPFRA42?= =?us-ascii?Q?glOvfwfRCHygF0lLs0dvwydXDQKyIQ25p6wqvzgZOC0nR3EugMHcg/TTVs4H?= =?us-ascii?Q?jC70uVbaGt8xZwIys/HBf0TqoR3Co00PrzzfWD9qdDmFL3R58C9koBAfS6yu?= =?us-ascii?Q?yW9PvswHIwbf1ZP5K8TE5pBC?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4930.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 663230ab-8de2-4e10-21f1-08d9210e15fe X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2021 12:51:03.0785 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7TZbTurghiHFpNy8qA8U8gJ/WBGCjLdIPnGjaCguKzTPUu9aiATvpJoXFtrsqmQnBjmvMIh2q6l/wnDqchql5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1837 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Steven, Thanks for the comments. Yes, it's a general toolchain that can generate EL= F executable. I also received your comments to 1/4. I will post V2 of 1/4 as a separate patch with your comments addressed. Thanks, Ray > -----Original Message----- > From: Shi, Steven > Sent: Wednesday, May 26, 2021 6:53 PM > To: devel@edk2.groups.io; Ni, Ray > Subject: RE: [edk2-devel] [PATCH 0/4] Support payload in ELF format >=20 > Is the CLANGDWARF a general toolchain? I suggest separating the CLANGDWAR= F toolchain code as a stand-alone patch. >=20 >=20 > Thanks >=20 > Steven Shi >=20 >=20 > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of Ni, Ray > > Sent: Wednesday, May 26, 2021 4:23 PM > > To: devel@edk2.groups.io > > Subject: [edk2-devel] [PATCH 0/4] Support payload in ELF format > > > > Per universal payload spec, the payload is in ELF format. > > > > The patch set adds toolchain CLANGDWARF for building ELF image and > > > > adds a payload loader that can load ELF image. > > > > Ray Ni (4): > > BaseTools: Create CLANGDWARF toolchain > > MdePkg/UniversalPayload: Add definition for extra info in payload > > UefiPayloadPkg: Add PayloadLoaderPeim which can load ELF payload > > PeiCore: Remove assertion when failing to load PE image > > > > BaseTools/Conf/build_rule.template | 10 +- > > BaseTools/Conf/tools_def.template | 98 ++ > > MdeModulePkg/Core/Pei/Image/Image.c | 5 +- > > MdePkg/Include/UniversalPayload/ExtraData.h | 28 + > > .../UniversalPayload/UniversalPayload.h | 38 + > > MdePkg/MdePkg.dec | 3 + > > UefiPayloadPkg/PayloadLoaderPeim/ElfLib.h | 122 +++ > > .../PayloadLoaderPeim/ElfLib/Elf32.h | 252 +++++ > > .../PayloadLoaderPeim/ElfLib/Elf32Lib.c | 398 +++++++ > > .../PayloadLoaderPeim/ElfLib/Elf64.h | 254 +++++ > > .../PayloadLoaderPeim/ElfLib/Elf64Lib.c | 407 ++++++++ > > .../PayloadLoaderPeim/ElfLib/ElfCommon.h | 983 ++++++++++++++++++ > > .../PayloadLoaderPeim/ElfLib/ElfLib.c | 499 +++++++++ > > .../PayloadLoaderPeim/ElfLib/ElfLibInternal.h | 88 ++ > > .../PayloadLoaderPeim/PayloadLoaderPeim.c | 187 ++++ > > .../PayloadLoaderPeim/PayloadLoaderPeim.inf | 59 ++ > > 16 files changed, 3426 insertions(+), 5 deletions(-) > > create mode 100644 MdePkg/Include/UniversalPayload/ExtraData.h > > create mode 100644 MdePkg/Include/UniversalPayload/UniversalPayload.h > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib.h > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32.h > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf32Lib.c > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64.h > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/Elf64Lib.c > > create mode 100644 > > UefiPayloadPkg/PayloadLoaderPeim/ElfLib/ElfCommon.h > > create mode 100644 UefiPayloadPkg/PayloadLoaderPeim/ElfLib/ElfLib.c > > create mode 100644 > > UefiPayloadPkg/PayloadLoaderPeim/ElfLib/ElfLibInternal.h > > create mode 100644 > > UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c > > create mode 100644 > > UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.inf > > > > -- > > 2.31.1.windows.1 > > > > > > > > -=3D-=3D-=3D-=3D-=3D-=3D > > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#75598): https://edk2.groups.io/g/devel/message/7559= 8 > > Mute This Topic: https://groups.io/mt/83095852/1781003 > > Group Owner: devel+owner@edk2.groups.io > > Unsubscribe: https://edk2.groups.io/g/devel/unsub [steven.shi@intel.com= ] > > -=3D-=3D-=3D-=3D-=3D-=3D > >