Allow stripped PE/COFF images to be loaded, just warn about it

This commit is contained in:
2023-02-22 15:20:00 +01:00
parent cbca1e21c6
commit aace0f39c4

View File

@@ -416,7 +416,8 @@ PepRelocateLoadedImage(IN PPECOFF_IMAGE_CONTEXT Image)
if(Image->PeHeader->FileHeader.Characteristics & PECOFF_IMAGE_FILE_RELOCS_STRIPPED)
{
/* No relocation information found */
return STATUS_EFI_UNSUPPORTED;
XtLdrProtocol->DbgPrint(L"WARNING: PE/COFF image is stripped and contains no information about relocations\n");
return STATUS_EFI_SUCCESS;
}
/* Set relocation data directory */