CorebootPayloadPkg DSC: Change the section alignment option
authorMaurice Ma <maurice.ma@intel.com>
Wed, 26 Oct 2016 18:15:14 +0000 (11:15 -0700)
committerMaurice Ma <maurice.ma@intel.com>
Wed, 26 Oct 2016 21:52:49 +0000 (14:52 -0700)
The current CorebootPayloadPkg will print the following message
"InsertImageRecord - Section Alignment(0x20) is not 4K" during
boot. It is caused by the section alignment arranged by the linker.
This patch change the alignment to 4K for runtime drivers.

Cc: Prince Agyeman <prince.agyeman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
CorebootPayloadPkg/CorebootPayloadPkg.fdf
CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc
CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc

index 6d2019de5b17c8296973d83205c797d25b2bfee2..3807923f606618185dcb15d099f00e4ddef473f3 100644 (file)
@@ -61,6 +61,7 @@ INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
 \r
 [FV.DXEFV]\r
 BlockSize          = 0x1000\r
+FvForceRebase      = FALSE\r
 FvAlignment        = 16\r
 ERASE_POLARITY     = 1\r
 MEMORY_MAPPED      = TRUE\r
index 155bbdfbf9364071fcc3d52bc5c57e7b3650e1b3..7a4ee2b4d37f5c9d2c1af92078559c6b034cff83 100644 (file)
@@ -88,6 +88,9 @@
   INTEL:RELEASE_*_*_CC_FLAGS     = /D MDEPKG_NDEBUG\r
   MSFT:RELEASE_*_*_CC_FLAGS      = /D MDEPKG_NDEBUG\r
 \r
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
+  MSFT:*_*_*_DLINK_FLAGS         = /ALIGN:4096\r
+\r
 ################################################################################\r
 #\r
 # SKU Identification section - list of all SKU IDs supported by this Platform.\r
index 16484b16554168e82d386af2cd344cb8f877f71b..c49f05ec8ab93e2d158a391c80b46292a10261e3 100644 (file)
@@ -90,6 +90,9 @@
   INTEL:RELEASE_*_*_CC_FLAGS     = /D MDEPKG_NDEBUG\r
   MSFT:RELEASE_*_*_CC_FLAGS      = /D MDEPKG_NDEBUG\r
 \r
+[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
+  MSFT:*_*_*_DLINK_FLAGS         = /ALIGN:4096\r
+\r
 ################################################################################\r
 #\r
 # SKU Identification section - list of all SKU IDs supported by this Platform.\r