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:
mdkinney
2006-09-21 03:11:13 +00:00
parent 0e9d14c4e7
commit 0411bcafa0
3 changed files with 50 additions and 23 deletions

View File

@ -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);