From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.4340.1622701403733767855 for ; Wed, 02 Jun 2021 23:23:23 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ray.ni@intel.com) IronPort-SDR: 7ZxsipwDKyH93ChKzoKrUlxb0vpG10n8b4OJgLsAotw/APU0nBLZzS2KRZy/ZKukMgngqMIp0V DfVgKKaTffwQ== X-IronPort-AV: E=McAfee;i="6200,9189,10003"; a="191323246" X-IronPort-AV: E=Sophos;i="5.83,244,1616482800"; d="scan'208";a="191323246" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 23:23:21 -0700 IronPort-SDR: euwX6xkwqjeDsvgIzMqTOwhjoFzm8142pA6lwra531T2M0zeJCHlRGOImpt+3kd1LBOsb8pfr6 ErnHdhY/5voQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,244,1616482800"; d="scan'208";a="447728728" Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga008.fm.intel.com with ESMTP; 02 Jun 2021 23:23:20 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH v2 0/3] Add PayloadLoaderPeim which can load ELF payload Date: Thu, 3 Jun 2021 14:22:56 +0800 Message-Id: <20210603062259.1390-1-ray.ni@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable v2:=0D Separate the patch set from the patch that adds CLANGDWARF toolchain.=0D Add missing function header commments.=0D Change DEBUG_ERROR to DEBUG_INFO for information debug message.=0D =0D 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 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