git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9775
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// Allocate Memory for the image\r
//\r
- if ((Private->PeiMemoryInstalled) && (Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME)) {\r
+ if ((!ImageContext.RelocationsStripped) && (Private->PeiMemoryInstalled) && (Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME)) {\r
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN) AllocatePages (EFI_SIZE_TO_PAGES ((UINT32) ImageContext.ImageSize));\r
ASSERT (ImageContext.ImageAddress != 0);\r
\r