Update ImageSize to align 4K page size for load module at fix address feature.
authorlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 8 Feb 2010 09:05:12 +0000 (09:05 +0000)
committerlgao4 <lgao4@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 8 Feb 2010 09:05:12 +0000 (09:05 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1853 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/Python/build/build.py

index 90ac1c2..2db9dff 100644 (file)
@@ -663,6 +663,7 @@ class PeImageInfo():
         self.BaseName         = BaseName\r
         self.Guid             = Guid\r
         self.OutpuDir         = OutpuDir\r
+        ImageClass.Size       = (ImageClass.Size / 0x1000 + 1) * 0x1000\r
         self.Image            = ImageClass\r
 \r
 ## The class implementing the EDK2 build process\r