From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.5796.1622026405687244753 for ; Wed, 26 May 2021 03:53:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=jEV8HzbW; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: steven.shi@intel.com) IronPort-SDR: jvb7+qJd8q30Hi3kYyuoWk7h/LeIU00nYjx0nQCrNFKmMomMi0bVqBVACfJV3fUmAeQmQjqU5c QFgA/R1l5kMQ== X-IronPort-AV: E=McAfee;i="6200,9189,9995"; a="189556402" X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="189556402" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2021 03:53:24 -0700 IronPort-SDR: klFjZLAysX6HSUSbZ4DUuqWcOdrt0VAAAh2aJwa3Is5pCDXeIH08UaPWMqzAdr7f/Ke0WPVQjm Hu0DBDWfK7xQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,331,1613462400"; d="scan'208";a="443967844" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga008.fm.intel.com with ESMTP; 26 May 2021 03:53:24 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 26 May 2021 03:53:23 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 26 May 2021 03:53:23 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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 via Frontend Transport; Wed, 26 May 2021 03:53:23 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Wed, 26 May 2021 03:53:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nD4vRkC2GIzmM0wkwDBO1kCsveXXR36Oa/NJJx9CF2QGKLzjrAf7L1q/5TWD9hD5awZniBRm/AN7Q1uhbgAnXMKJeNQDjeGBAubM+z/xhJqtNts+OrUXIkDy4T+0sjkTCkmVGcZ9J6JsMnqibtLoIPT6ZndrZ6rDLH2S+8b8O+e+OQng25GjvwYKBd96dRsiES7jW9g0NUdtHvQfEve8pTB465K8dwqFSD87DKyDEzKxalF34DhEBfS7YM+Z1Q9keMLjJp5z1xpE3wzo7cOFkS+crN1EM5/CoPt/h3Zt1tS9xCAjoWXoN6pwDFarUEdmhtveyx4Q+SctyLQHDpiIeQ== 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=rI/vra65gfpJAgWY70LGTm1uy6xs8AJ+GiC+CCA+Gm0=; b=eK8hb4xBeJUKJON83wd0m6n2mOQUeoQ/WO9dSisxRsT0AjqJPDnusv2WqnanQ36tGD93Oa6agmckmkmKHT8oVNe+itePOrlOXGN0FuJZ18NI7g8kg/vAZVqAw2G7CNQ74sQk++55iFbZUYr2bxeKwjnr68HxCRpyVBxPEWvuUBkmctGNK3tvBzsHAuIlFDGeac2DIUFQdWKS4uclkACt8XwRz++fVgtb91VLAE6mA0VvkEX7ljnnY6TFx1wyIapifG1f8BQflAHT9/JoAnaJqCV7MBG3G0UCsO5/JH0gwM2hL1MxqZtQVu1WGN1beRvN25MdiAqLrr5PCAVxYXCRkA== 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=rI/vra65gfpJAgWY70LGTm1uy6xs8AJ+GiC+CCA+Gm0=; b=jEV8HzbWulGJni1rpB8qtyOXlCrURJ3Bv0o3CrU4L6slv5BQJe8Hledw74XXP4she9VATD9OhCRvNDoLLlqsvhlW6JM5iTVU2nLTdqwAAbRRYAVAlpOAcIm2RKJVpluSwdfQn9JilOZtMxhDfA5/1Wn9cXYU2OgoIm5SXy2APXs= Received: from MWHPR11MB1950.namprd11.prod.outlook.com (2603:10b6:300:112::16) by MWHPR11MB1982.namprd11.prod.outlook.com (2603:10b6:300:10f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Wed, 26 May 2021 10:53:18 +0000 Received: from MWHPR11MB1950.namprd11.prod.outlook.com ([fe80::25d6:4ac3:3d67:9111]) by MWHPR11MB1950.namprd11.prod.outlook.com ([fe80::25d6:4ac3:3d67:9111%11]) with mapi id 15.20.4150.027; Wed, 26 May 2021 10:53:17 +0000 From: "Steven Shi" To: "devel@edk2.groups.io" , "Ni, Ray" 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+KbQoLmMutk2UkQi67jF5Yar1kaWw Date: Wed, 26 May 2021 10:53:17 +0000 Message-ID: References: <20210526082310.1597-1-ray.ni@intel.com> In-Reply-To: <20210526082310.1597-1-ray.ni@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.199] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 801cb2d5-dd4f-434c-94ca-08d920347860 x-ms-traffictypediagnostic: MWHPR11MB1982: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oKFXByWv8Tqd2RSKZ/uhwM1NBzcs4S5IJmC9WvSF7dJgowphJ7ILKkkFRAsSF11LTqBXAQXrg+dhTP8GnAcHsime+CTwmVgAtYermA6U6uANGV81n8ZUOTsZfQ4mAiHh2Lx1IlEmQRYaupKIgfNqfw/n6lG5tokAhpm0tDsKoO6i9EYbqSGExed2qGFjUHL6dA8EtFTcBzHRfoQOJMHwD2bigIl3E1x1LHnnLMcarc6u0RoUpAtK6WA1f98e7BGyAr4Utx7L63mWNwueucJXmOf3GR7o5o8ErgbeZanx4nw6g1dg3ccTZzJAH4D97T0WJwxMB3BJ9rss77gTgkaYm8hKp3iz06T7Ih33ZMnet//6Z9lsXBuPQmoZa4UvhL5Uep9K2IIUteXLWKl4mtkknKlxZ49cITVYi4RTQ/IB/nMwF31i8ifnwclGa8GHQNTDtO83B8QHC77bo5zQzK4KbBsqqvwqBquT+uzHoZ/ve0XY6mdQmnyT2hTd1GiSgYwuRrSzJn97Efkh+0e5xYt3VM4uZCxR2XWEwaB/g3RmHJ1y6J2ulrFxaRDevsGqJUzZ2svXmLgQA6YQ9Y2ZLiJ7QrKmg/sqatqn4yJy6I4TEAg7QyQv8QpNAESxuaD8QHNjfrbm5HZize2iyg1Y1ZD59vzaIxiWmvHWZFyj8IdZ+/5lH4TCqrmMfloW4019eDCrGihdib5D8VvmQMEXXhfGU5ze2b+rqLSruZPrXy6UmXQ= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1950.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(346002)(366004)(136003)(396003)(39860400002)(66476007)(64756008)(186003)(66446008)(66556008)(33656002)(66946007)(55016002)(8936002)(53546011)(52536014)(9686003)(19627235002)(6506007)(5660300002)(38100700002)(86362001)(122000001)(966005)(8676002)(26005)(478600001)(316002)(6636002)(110136005)(83380400001)(76116006)(71200400001)(7696005)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?3vN3u/87tANzCFDpQWXgtGUAm22uxFftlus86rRVNSXBDd0W2tD5ALFEoLfB?= =?us-ascii?Q?iCV1wm63IezbYkUCbinC9negFImnUgdeh1G01qIAeKKmy4RuoK3gSBiXA/2j?= =?us-ascii?Q?T4V1aJTepjnH4ronsOnCgBMgxdS4BlIun72dxt/uFUWeDtV68FOP6urodcYJ?= =?us-ascii?Q?EUVqcj2sgLNDKUdSfXABe12cpZ913NGBOSc5pTl6QNpodt57D5+XvRTVptjg?= =?us-ascii?Q?t1+ylToVqR20+sP23ngrupcHCZnsZxL/fsKrKqfNpXtHpryYTk8Wgztk3VlB?= =?us-ascii?Q?FtG0ioc9S/gfD3hLnRk8Y8Iti91wUjr0EWoUM6GFZigEGS9FFbtsQUwc93IG?= =?us-ascii?Q?yEQbWOUvDpf4KDNUv6tfL+eyBWo8N0Cipgx7mcahwUeZQcu3KUM4Hs4IpVAf?= =?us-ascii?Q?cH+5VM5jKlek0dV+7eL4Z9kAVXLy/rWohyih9B4QxCUh9pieGWncoh7fyo0y?= =?us-ascii?Q?o0CywhvU4dUmoKQ7GsSmyNn7sz64zwcDh4fRSU7C7nKCaSkQvgyujJ2gXY0X?= =?us-ascii?Q?JluBd+ILU6Qne6/L2RSaRSyqngGZmvPkbT0ZSDDphmBWMJNxD4Xgmkzqg2Wq?= =?us-ascii?Q?1mf+kk1PIGdodhXRR3PqkqeckMqzwb/1ZHmnMKuoWBuaMrm4JZ1rHNYfSzo8?= =?us-ascii?Q?w3VOeef9FxD4PQwHZ6lteXsNXbsmyhGVAcrRoPTawbAiLYernXX+t1THvhwp?= =?us-ascii?Q?UHP+pGwcMRjczUJ69+Aue51/+SBkYvWDAzOJgdeUVxplq3lHsi+QeHmEqkFR?= =?us-ascii?Q?RuI3A0PC1bZhO3RpJD4FYPsrgjFvy0KPGeZy6cd2I1XMQgWoMssROY2BnxU+?= =?us-ascii?Q?PUorwHktGNJiyisDaI55N/200abtm/X+VYISues1t+zvlabWJbCTqzUGDoL3?= =?us-ascii?Q?3u/Oz6h8Nz4w7pKigxl2n7vvJQDodWpP3tXPu5rDbL2IhQGj9bmHy9Qp7Tqr?= =?us-ascii?Q?ipoFvvcDnJwzBf95SuwycX5lcCtZXE1EvZhavxsbzkGo4/qCsYGvIu1zLYTp?= =?us-ascii?Q?bGnwZq0KR0nGLrnvE1Q235KZBIQy4g+xjPwo66qhnv5fEWaPk8Bi7r5lrtcd?= =?us-ascii?Q?Wsy9YBsUmbDDree9bI+lOUseswvLsngM7qmmKa6qr8dHALLidKARnYKS+YMo?= =?us-ascii?Q?qoZbZ3zJEytwzG135q0pIXD61/OWUTRdiN9k3CHKdJudcadbmhB30p50Phq/?= =?us-ascii?Q?FyNobnuZ+DZ2yFpjikcHSWsYVyVyjdAeFCbgU98KwPGmVdtQnzIQJ/9oUVFe?= =?us-ascii?Q?EiBOb2oOgvM4UG2QpPFPrPf9bEKG9G24jYY4uLcpN+0nC74wMTQpquXySivc?= =?us-ascii?Q?bDfjd2cHk6++/cau/SMBj2UG?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1950.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 801cb2d5-dd4f-434c-94ca-08d920347860 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2021 10:53:17.8210 (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: MlrrO8wQ+yhK2OTS384FrZvZcwLAAryyVLneJyscSi+yqZ3GOjukJHXuVxXdmuckcNPCa8eBJP9GNvTZ5rg+jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1982 Return-Path: steven.shi@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is the CLANGDWARF a general toolchain? I suggest separating the CLANGDWARF = toolchain code as a stand-alone patch. Thanks Steven Shi > -----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 >=20 > Per universal payload spec, the payload is in ELF format. >=20 > The patch set adds toolchain CLANGDWARF for building ELF image and >=20 > adds a payload loader that can load ELF image. >=20 > 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 >=20 > 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 >=20 > -- > 2.31.1.windows.1 >=20 >=20 >=20 > -=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/75598 > 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 >=20