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
父節點 cbca1e21c6
當前提交 aace0f39c4

查看文件

@@ -416,7 +416,8 @@ PepRelocateLoadedImage(IN PPECOFF_IMAGE_CONTEXT Image)
if(Image->PeHeader->FileHeader.Characteristics & PECOFF_IMAGE_FILE_RELOCS_STRIPPED) if(Image->PeHeader->FileHeader.Characteristics & PECOFF_IMAGE_FILE_RELOCS_STRIPPED)
{ {
/* No relocation information found */ /* 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 */ /* Set relocation data directory */