Fixed FwImage/fwimage.c to guarantee that the raw size of a section is a multiple of the file alignment.
Revert PeCoffLoader/BasePeCoff.c and PeiRebase/PeiRebaseExe.c back to the previous revisions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1582 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -858,7 +858,7 @@ Returns:
|
||||
Base = PeCoffLoaderImageAddress (ImageContext, Section->VirtualAddress);
|
||||
End = PeCoffLoaderImageAddress (
|
||||
ImageContext,
|
||||
Section->VirtualAddress + Section->SizeOfRawData - 1
|
||||
Section->VirtualAddress + Section->Misc.VirtualSize - 1
|
||||
);
|
||||
if (ImageContext->IsTeImage) {
|
||||
Base = (CHAR8 *) ((UINTN) Base + sizeof (EFI_TE_IMAGE_HEADER) - (UINTN) TeHdr->StrippedSize);
|
||||
|
Reference in New Issue
Block a user