Allow stripped PE/COFF images to be loaded, just warn about it
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-02-22 15:20:00 +01:00
parent cbca1e21c6
commit aace0f39c4
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

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 */