MdeModulePkg/DxeMain: Zero ImageContext local variable before passing it down to PeCoffLoaderRelocateImageExtraAction()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish <afish@apple.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15587 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
84043adfe2
commit
2f497dc147
@ -296,6 +296,7 @@ DxeMain (
|
|||||||
//
|
//
|
||||||
// Report DXE Core image information to the PE/COFF Extra Action Library
|
// Report DXE Core image information to the PE/COFF Extra Action Library
|
||||||
//
|
//
|
||||||
|
ZeroMem (&ImageContext, sizeof (ImageContext));
|
||||||
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)gDxeCoreLoadedImage->ImageBase;
|
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)gDxeCoreLoadedImage->ImageBase;
|
||||||
ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);
|
ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);
|
||||||
PeCoffLoaderRelocateImageExtraAction (&ImageContext);
|
PeCoffLoaderRelocateImageExtraAction (&ImageContext);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user