mirror of https://github.com/acidanthera/audk.git
Change the behavior of DxeIplLoadFile to load EFI_SECTION_TE first. If failed, LOAD EFI_SECTION_PE32. For our implementation, some PEIM who require to shadow itself is in TE format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3618 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
98d80c1807
commit
d156c2a8a2
|
@ -593,15 +593,23 @@ Returns:
|
||||||
// Preprocess the FFS file to get a pointer to the PE32 information
|
// Preprocess the FFS file to get a pointer to the PE32 information
|
||||||
// in the enclosed PE32 image.
|
// in the enclosed PE32 image.
|
||||||
//
|
//
|
||||||
Status = PeiProcessFile (
|
Status = PeiProcessFile (
|
||||||
EFI_SECTION_PE32,
|
EFI_SECTION_TE,
|
||||||
FfsHeader,
|
FfsHeader,
|
||||||
&Pe32Data,
|
&Pe32Data,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
Status = PeiProcessFile (
|
||||||
|
EFI_SECTION_PE32,
|
||||||
|
FfsHeader,
|
||||||
|
&Pe32Data,
|
||||||
|
NULL
|
||||||
|
);
|
||||||
|
|
||||||
|
if (EFI_ERROR (Status)) {
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Load the PE image from the FFS file
|
// Load the PE image from the FFS file
|
||||||
|
|
Loading…
Reference in New Issue