]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/Image/Image.c
Print the warning information for the image without relocation only when load it...
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Image / Image.c
index b7c1f96e0fcb68a6ef14b85fd8dd00fda2c5010b..63c8868894a163e92a4fcfc25649376c9f34eb1e 100644 (file)
@@ -138,10 +138,10 @@ LoadAndRelocatePeCoffImage (
   //\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