On 18 August 2015 at 04:35, Gao, Liming <liming....@intel.com> wrote:
> Ard:
>   I think this patch needs to update VS tool chain link flag to enable 4K for 
> DXE_RUNTIME modules, because Ovmf platform also supports VS tool chain.
>

Good point, thanks.


> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ard 
> Biesheuvel
> Sent: Monday, August 17, 2015 10:25 PM
> To: edk2-devel@lists.01.org; Liu, Yingke D
> Cc: wp...@windriver.com; sc...@notabs.org; Ard Biesheuvel; Justen, Jordan L; 
> Gao, Liming; dw...@infradead.org
> Subject: [edk2] [PATCH v2 16/16] OvmfPkg/X64: enable 4 KB alignment for 
> DXE_RUNTIME modules
>
> This enables 4 KB section alignment for DXE_RUNTIME modules, for ELF based 
> toolchains and for the UNIXGCC PE/COFF toolchain.
>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org>
> ---
>  OvmfPkg/OvmfPkgX64.dsc | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 
> b72eaa92f82e..817c381f4913 100644
> --- a/OvmfPkg/OvmfPkgX64.dsc
> +++ b/OvmfPkg/OvmfPkgX64.dsc
> @@ -48,6 +48,13 @@ [BuildOptions]
>    INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable  !endif
>
> +[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
> +!if $(TOOLCHAIN) == UNIXGCC
> +  GCC:*_*_X64_DLINK_FLAGS = --section-alignment 0x1000 --file-alignment
> +0x1000 !else
> +  GCC:*_*_X64_DLINK_FLAGS = -z common-page-size=0x1000 !endif
> +
>  
> ################################################################################
>  #
>  # SKU Identification section - list of all SKU IDs supported by this 
> Platform.
> --
> 1.9.1
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to