From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,408,1498546800"; d="dat'59?scan'59,208,59";a="1208287336" 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 From: "Song, BinX" To: "Yao, Jiewen" CC: "edk2-devel@lists.01.org" 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 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: [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: , X-List-Received-Date: Mon, 21 Aug 2017 08:42:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 --- 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