OvmfPkg/AmdSev: Page align sections of DXE and UEFI Images

The current AmdSev only page aligns sections of DXE runtime and SMM
images for image protections. However, image protections are applied
to other image types like DXE_DRIVER, DXE_CORE, UEFI_DRIVERS and
UEFI_APPLICATION which makes those images unprotected.

This change applies page alignment to sections of image DXE_DRIVER,
DXE_CORE, UEFI_DRIVER and UEFI_APPLICATION so image protections take
effect.

!!!!!!!!  Image Section Alignment(0x40) does not match Required Alignment (0x1000)  !!!!!!!!
ProtectUefiImage failed to create image properties record

Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
1 file changed