Update ImageSize to align 4K page size for load module at fix address feature.
[efi/basetools/.git] / 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