git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9822
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// When Image has no reloc section, it can't be relocated into memory.\r
//\r
- if (ImageContext.RelocationsStripped) {\r
+ if (ImageContext.RelocationsStripped && (Private->PeiMemoryInstalled) && (Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME)) {\r
DEBUG ((EFI_D_INFO, "The image at 0x%08x without reloc section can't be loaded into memory\n", (UINTN) Pe32Data));\r
}\r
- \r
+\r
//\r
// Set default base address to current image address.\r
//\r