From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web08.3275.1623098022420218469 for ; Mon, 07 Jun 2021 13:33:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=nxaG92fY; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: guo.dong@intel.com) IronPort-SDR: n5jxv9uaCuOf9p8e0aOWcbbIPDAz/ZJyi05Q+62VRbh8oaHeTx/Q7svkOCOs0WeU80lubO4clQ g4Xuy106W8XA== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="226044308" X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="226044308" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 13:33:36 -0700 IronPort-SDR: Q6c1fcwkmyBCcFvSLpl71IBDjOvGcYsWOteCpIoxZexIksf6IYhWXsT5jyZX7FNHcYCz9wCFBC l/RbkAWPJO1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="449232098" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga008.fm.intel.com with ESMTP; 07 Jun 2021 13:33:36 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 7 Jun 2021 13:33:35 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) 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; Mon, 7 Jun 2021 13:33:35 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Mon, 7 Jun 2021 13:33:35 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) 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; Mon, 7 Jun 2021 13:33:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eIgulXFvOeQZ7ZZ0jGcN+T4lkjQa8eQuD1BlcBpCYTSPZ4RwRW124Iy+AFZMRUjIgNQJNJHidHFXM3k6zjw7cLbnPBq90H8Xn9il977VIi8vUfzjRW21z0Es0nabHm8TtLvBfP/pI5uqvaZ2sP4Us+DaqCm7HPjzmvoqCMgWKgK7Do9OynheWKzSJ56JptJmj0c7uUJ9T9PRriD2HBukHlHxu/GAudmw173dzsVh5qwaVXyjpZWx4W37nY/TO5PNasX4NgEIoJGzXntwW+BDttW4HZblWMQMF7yeP2WlwCtz2L7KO2UF01A6Es4kzZLASyRnTxArwXze9Y9Hc1GDNg== 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=v7+5/3dlMw/7lOYDtId6MoOzpNF2cbFjXwE9BMwrZho=; b=Hib4hFqwsYei390Nw0CByDoLmnPdu3mbHOJCHwJdrPcMU6C1QkDQYq7FUiVSQdCbwtiqkbZQ0Eo2jWWNgxut3ZBwBagBaSvknGYKdAWvBWZy7ri4wrmZvlxsb7rFD/IEAL1p2FYFH5qW6VyCsn/GUZL41CqXjQGao+BJBfKYcoayXqKqkHqnbuCzgNVYHLBMc4kDFa+tBV8D9Cr+or8r1sVwFFfiiSL3NemOy3UuVedpZpeWD7P8YaP4GsgcGSZEE1gs7ptySniZtDdiOlKFgwpuXhcIa0eFMYrDpX3bF1oCey6MZHYk2ObycK7Y6jG3loBeMZvyGb2YrBqlX4FhhQ== 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=v7+5/3dlMw/7lOYDtId6MoOzpNF2cbFjXwE9BMwrZho=; b=nxaG92fY3Chhx0h2QMaP6VWg6s8TQrsRKY9MuItfbU9uk4RNp9ldkp23+rJXIK3ACpv2IUci4kdmjOofEOqSV9qyYskPL9FbmoBJu6WJTVDufYf/uJVqQ5Re5v3uGga4OBuWwKApMJ1Vi3dhEF2HmVTE8h+AQsX9n3uL0vjCphk= Received: from BYAPR11MB3622.namprd11.prod.outlook.com (2603:10b6:a03:fe::30) by SJ0PR11MB4816.namprd11.prod.outlook.com (2603:10b6:a03:2ad::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Mon, 7 Jun 2021 20:33:34 +0000 Received: from BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::49f0:3ec3:7ce5:60db]) by BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::49f0:3ec3:7ce5:60db%7]) with mapi id 15.20.4195.030; Mon, 7 Jun 2021 20:33:34 +0000 From: "Guo Dong" To: "devel@edk2.groups.io" , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH v2 0/3] Add PayloadLoaderPeim which can load ELF payload Thread-Topic: [edk2-devel] [PATCH v2 0/3] Add PayloadLoaderPeim which can load ELF payload Thread-Index: AQHXWEECGUqvICq1G0CbFfAyLrDFWasJCBlg Date: Mon, 7 Jun 2021 20:33:34 +0000 Message-ID: References: <20210603062259.1390-1-ray.ni@intel.com> In-Reply-To: <20210603062259.1390-1-ray.ni@intel.com> Accept-Language: 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: [2600:8800:1704:2800:e815:c8c:2d59:271f] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: df87ab98-4955-4a3e-9a41-08d929f3858e x-ms-traffictypediagnostic: SJ0PR11MB4816: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XiMjtY0ucfl0XginCUIsBbBjpw9NCeebCFSFQisiirJOlS9o7Zzg0Lh5e6YGIBKF3JhO314Fz0+wJr65K6PS5puGeWdo3z3Ne13+u+TXcMI833g1LYApXJJRbHNYibG/km5RUgRp8c0PRd7Jyv10UNSVhsvlVzWdeiyjYVRkkeWc1MfDPOAVnXjJWVrbcE46Pd+X/ISIff5e5oHC9XgSvAHaD8fdGIWlk2V7fNWJogDu598oRMNxAb7b8KWKPc2OgzeSLSA2w6QRT5kdqE+6/jclzERGXaeM7WOIm2Mp2Jr1Zk2a5tw4DWbv+vyy3STEXmAMIU4I0c9Uk5+/vbJM58Uym77NcRRe2HF2segzYsSpXg1M/kd61VENOPLTkPG9VrCsUJcW2DTkwGC1Q2QUTGi8nDAneoaK8fGYWIX15TDauFpv+GE98bTPMHqe+b3KQajBWlw4fDIn8CqDAfHCqc53xnWk8xoct/8gkyHNGJIHnwSoOsBPDBZSqmT7UDx5cTR3NtlgVcbvivWPkLCpyOWbZzEO9RaPulByzOa9ZOseVhC6+dir8gQfNM3AQD9IKEcL0VfsOjozyPbCfnvBxE2snrKA9kIdviOXSo7RfqBG8jh7rjkx0ipiupgeTVhwWfvm7qxeTTqCXBKTpvvj1GnPVMk8R6MjsFKzOjiZ+Qhhqij+gkaRrhB1bCurFvspqkmT5LvndSemlg2MBptctEdfrfBvNBKxl0aa66AWdJQBkhKtWeJVaexHB1HDqVbsIWjdxnPEMnK3oGw75YPfAw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3622.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(346002)(376002)(366004)(396003)(39860400002)(83380400001)(2906002)(55016002)(38100700002)(53546011)(122000001)(6506007)(19627235002)(316002)(71200400001)(110136005)(52536014)(5660300002)(7696005)(478600001)(966005)(8936002)(86362001)(76116006)(66946007)(66556008)(66446008)(64756008)(9686003)(8676002)(33656002)(6636002)(66476007)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?PElMWZZNOhD5XGFemrCPvlfUmiGsXGmp/tEZfI8wKAHfCzDtG9Lf+iJsO7sX?= =?us-ascii?Q?cZ8sSR/b7CQALrgMtwvaDNjtfdrgxYQ8n8mTqrRSMOHPTBkazUSOxuHO2p5Z?= =?us-ascii?Q?fxs1FHZY4UytUL9IM7h9xqTIH2zIxYVlQNKOIJRBGw3hGm8M/p29uzOtAakN?= =?us-ascii?Q?Dh3rFCfxqgmlbK+S6coo1WkxmtV5Y52fLYnOU56jRrE7S+ZNzBZHYdmaJOor?= =?us-ascii?Q?TCIVBanMaIKaquyVkIfwfOrHqo7c6FZsGaWywtPyV76f/kI6E2O3lP2WdulQ?= =?us-ascii?Q?YALkRT9hw4tfmXhog+qaS8fs2A/98rnG9cOdg6tEWsIGlccmF7tX5dkpMZR6?= =?us-ascii?Q?8Pg8cKJMsCSjWQU6Aux0rOyox2exvbKPqSNeHD9Cr+gC8pKl2uG0Bjn1CP16?= =?us-ascii?Q?SmuU7IYHCsnbiRIZdX5vTHs8xPuT3pcVJGsFBOdUobFnwprZQR0Ykk+8558+?= =?us-ascii?Q?tAMhWM3KFKSd6sFSZQZqII0p9/bvoaUvrtodQNFIcY1yDux1S6JC6yBmYlYR?= =?us-ascii?Q?DVGYKD9kQFclhcBeLC6IiyWfUZkkClrrJnIQfP9c106Z9xbIMf7Nejst3y5E?= =?us-ascii?Q?a9B/cHThHgdyhqAAYlhHgZ9hBtQ6n+jy2C7nb2ysYOG7EDTnrIXxY7GHn28b?= =?us-ascii?Q?jbrEuhes8uW0SyM0BnIdbAMrX0bCanLqyKw5NxpdoMkxfAEumxWWbOiEtICn?= =?us-ascii?Q?5PuWoFZj7MsEAeFXQtfydQNrBXS2tkuIVuJPHz/3R126V4sgnyHLqOKRngN1?= =?us-ascii?Q?7gVtFyW9XScTqxybRz073RK92vYC1kR3zI5YJyLwXz9kH5KikU7fTG/4FruP?= =?us-ascii?Q?TixWlVTVo9YPQpOthDShXorfdVSZ3YKC+BkEb//W64TuHTpr/GIw8xhlDkNS?= =?us-ascii?Q?UY+ow2dzIeN1Ivwe9qoOuVK6dX5RLjhJJ0zpXq0Vo9ptYz6U6aVBsofZpw/E?= =?us-ascii?Q?00kPB8zBzKjsBdqHeyPHOpfr924xWThc0W7nU9+sohAnujV/V/pPpM19fPl9?= =?us-ascii?Q?ICxfYmAH9IG604w08bXJDxYko8Y6oL63DxwqyzSlZytwoJJphZu5rHfEfuFX?= =?us-ascii?Q?HYHHiK7UFi1Rke2793ekT1wMUsku53NzOa0xgk7VqCt3fLNw36GQqs4cOq0x?= =?us-ascii?Q?NGn+sLcntQDnPGALXGDorW0AgHe0T2HF88dLbJ3wzDQdSsbNCmxC2SINNlj4?= =?us-ascii?Q?rIboeT0uet0H2VpqJmw3Au3h9sNyfxE4b9QDkx836QLK49ksfjDgGf2iZAVJ?= =?us-ascii?Q?1i9JdNiXYZqPIib846VTF2QN9dXDlndUrVpz3PqaqvKc7+ywEFw39Fdg6ng5?= =?us-ascii?Q?jOIfg6MwuRiRQfiCmaX+LoG8SGaDj7WF++Jvn63q6gQ022kDztf4fz7tl1FS?= =?us-ascii?Q?gW8S/4i83Jsdmornvqon0VMI2Dvk?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3622.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: df87ab98-4955-4a3e-9a41-08d929f3858e X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2021 20:33:34.3063 (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: Nm7rQyjpkBVewM7g6UAf0nWKa2AneWS14AMiEl1DIOXG44dYNAtRTCci01OPhIeELOmw6ORZtG+wB+NbdE4J3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4816 Return-Path: guo.dong@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Guo Dong > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Ni, Ray > Sent: Wednesday, June 2, 2021 11:23 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH v2 0/3] Add PayloadLoaderPeim which can load > ELF payload >=20 > v2: >=20 > Separate the patch set from the patch that adds CLANGDWARF toolchain. >=20 > Add missing function header commments. >=20 > Change DEBUG_ERROR to DEBUG_INFO for information debug message. >=20 >=20 >=20 >=20 > Ray Ni (3): > MdeModulePkg/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 > MdeModulePkg/Core/Pei/Image/Image.c | 5 +- > .../Include/UniversalPayload/ExtraData.h | 28 + > .../UniversalPayload/UniversalPayload.h | 38 + > MdeModulePkg/MdeModulePkg.dec | 3 + > UefiPayloadPkg/PayloadLoaderPeim/ElfLib.h | 122 +++ > .../PayloadLoaderPeim/ElfLib/Elf32.h | 252 +++++ > .../PayloadLoaderPeim/ElfLib/Elf32Lib.c | 451 ++++++++ > .../PayloadLoaderPeim/ElfLib/Elf64.h | 254 +++++ > .../PayloadLoaderPeim/ElfLib/Elf64Lib.c | 460 ++++++++ > .../PayloadLoaderPeim/ElfLib/ElfCommon.h | 983 ++++++++++++++++++ > .../PayloadLoaderPeim/ElfLib/ElfLib.c | 473 +++++++++ > .../PayloadLoaderPeim/ElfLib/ElfLibInternal.h | 109 ++ > .../PayloadLoaderPeim/PayloadLoaderPeim.c | 187 ++++ > .../PayloadLoaderPeim/PayloadLoaderPeim.inf | 59 ++ > 14 files changed, 3420 insertions(+), 4 deletions(-) > create mode 100644 MdeModulePkg/Include/UniversalPayload/ExtraData.h > create mode 100644 > MdeModulePkg/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 (#76008): https://edk2.groups.io/g/devel/message/76008 > Mute This Topic: https://groups.io/mt/83277974/1781375 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [guo.dong@intel.com] > -=3D-=3D-=3D-=3D-=3D-=3D >=20