From nobody Fri May 3 05:38:46 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1503305107051862.609606495741; Mon, 21 Aug 2017 01:45:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4440021E2DA5D; Mon, 21 Aug 2017 01:42:33 -0700 (PDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 295E221E1453C for ; Mon, 21 Aug 2017 01:42:31 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2017 01:45:02 -0700 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 21 Aug 2017 01:45:01 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 21 Aug 2017 01:45:01 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 21 Aug 2017 01:45:01 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.183]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.128]) with mapi id 14.03.0319.002; Mon, 21 Aug 2017 16:44:59 +0800 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,408,1498546800"; d="dat'59?scan'59,208,59";a="1208287336" From: "Song, BinX" To: "Yao, Jiewen" Thread-Topic: [PATCH V3] IntelFsp2Pkg: Fix build error with WHOLEARCHIVE option Thread-Index: AdMaWZN7xfj0hR5sSxuZuw6U2EZWNA== Date: Mon, 21 Aug 2017 08:44:58 +0000 Message-ID: <559D2DF22BC9A3468B4FA1AA547F0EF10258DD23@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <559D2DF22BC9A3468B4FA1AA547F0EF10258DD23@shsmsx102.ccr.corp.intel.com> x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: [edk2] [PATCH V3] IntelFsp2Pkg: Fix build error with WHOLEARCHIVE option X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "edk2-devel@lists.01.org" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" V3: - Update dummy TempRamInitApi function and remove unnecessary info V2: - Recover TempRamInitApi API and add dummy TempRamInitApi function to fix build error with WHOLEARCHIVE option V1: - Delete useless external TempRamInitApi API to fix /WHOLEARCHIVE build error Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Bell Song Reviewed-by: jiewen.yao@intel.com --- IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm | 11 +++++++++++ IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryS.nasm | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm b/IntelFsp2Pkg/= FspSecCore/Ia32/FspApiEntryM.nasm index 9744e16..6833ca3 100644 --- a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm +++ b/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm @@ -195,6 +195,17 @@ ASM_PFX(AsmGetPeiCoreOffset): ret =20 ;-------------------------------------------------------------------------= --- +; TempRamInit API +; +; Dummy function for WHOLEARCHIVE build option +; +;-------------------------------------------------------------------------= --- +global ASM_PFX(TempRamInitApi) +ASM_PFX(TempRamInitApi): + jmp $ + ret + +;-------------------------------------------------------------------------= --- ; Module Entrypoint API ;-------------------------------------------------------------------------= --- global ASM_PFX(_ModuleEntryPoint) diff --git a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryS.nasm b/IntelFsp2Pkg/= FspSecCore/Ia32/FspApiEntryS.nasm index cdc1149..80678dd 100644 --- a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryS.nasm +++ b/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryS.nasm @@ -54,6 +54,17 @@ ASM_PFX(FspApiCommonContinue): ret =20 ;-------------------------------------------------------------------------= --- +; TempRamInit API +; +; Dummy function for WHOLEARCHIVE build option +; +;-------------------------------------------------------------------------= --- +global ASM_PFX(TempRamInitApi) +ASM_PFX(TempRamInitApi): + jmp $ + ret + +;-------------------------------------------------------------------------= --- ; Module Entrypoint API ;-------------------------------------------------------------------------= --- global ASM_PFX(_ModuleEntryPoint) --=20 2.10.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel