diff options
-rw-r--r-- | MdeModulePkg/Core/Pei/Image/Image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c index b7c1f96e0f..63c8868894 100644 --- a/MdeModulePkg/Core/Pei/Image/Image.c +++ b/MdeModulePkg/Core/Pei/Image/Image.c @@ -138,10 +138,10 @@ LoadAndRelocatePeCoffImage ( //
// When Image has no reloc section, it can't be relocated into memory.
//
- if (ImageContext.RelocationsStripped) {
+ if (ImageContext.RelocationsStripped && (Private->PeiMemoryInstalled) && (Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME)) {
DEBUG ((EFI_D_INFO, "The image at 0x%08x without reloc section can't be loaded into memory\n", (UINTN) Pe32Data));
}
-
+
//
// Set default base address to current image address.
//
|