REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4049
Link error occurred in certain compiling environment when building FspSecCoreI: unresolved external symbol _TempRamInitApi. Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Cc: Star Zeng <star.z...@intel.com> Signed-off-by: Chasel Chiu <chasel.c...@intel.com> --- IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm | 11 +++++++++++ IntelFsp2Pkg/FspSecCore/X64/FspApiEntryI.nasm | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm b/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm index e9365d6832..e392ebed58 100644 --- a/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm +++ b/IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryI.nasm @@ -22,6 +22,17 @@ global ASM_PFX(FspApiCommonContinue) ASM_PFX(FspApiCommonContinue): jmp $ +;---------------------------------------------------------------------------- +; TempRamInit API +; +; Empty function for WHOLEARCHIVE build option +; +;---------------------------------------------------------------------------- +global ASM_PFX(TempRamInitApi) +ASM_PFX(TempRamInitApi): + jmp $ + ret + ;---------------------------------------------------------------------------- ; FspSmmInit API ; diff --git a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryI.nasm b/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryI.nasm index e74bf0a26b..5c9ffbd569 100644 --- a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryI.nasm +++ b/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryI.nasm @@ -22,6 +22,17 @@ global ASM_PFX(FspApiCommonContinue) ASM_PFX(FspApiCommonContinue): jmp $ +;---------------------------------------------------------------------------- +; TempRamInit API +; +; Empty function for WHOLEARCHIVE build option +; +;---------------------------------------------------------------------------- +global ASM_PFX(TempRamInitApi) +ASM_PFX(TempRamInitApi): + jmp $ + ret + ;---------------------------------------------------------------------------- ; FspSmmInit API ; -- 2.35.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93455): https://edk2.groups.io/g/devel/message/93455 Mute This Topic: https://groups.io/mt/93532998/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-