]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: force use of AARCH64 small model when building DEBUG shell
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 20 Aug 2015 06:39:04 +0000 (06:39 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 20 Aug 2015 06:39:04 +0000 (06:39 +0000)
The tiny code model used by AARCH64 only supports binaries of up to
1 MB in size. Since the Shell application exceeds that when built in
DEBUG mode, make sure we build it using the small code model instead.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18241 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/Shell.inf

index f7039369227c421d771667e98ec7a27c123fb12f..09aecf717bd7a2610a5bbe87aded7460a041b2c1 100644 (file)
   gEfiShellPkgTokenSpaceGuid.PcdShellForceConsole         ## CONSUMES\r
   gEfiShellPkgTokenSpaceGuid.PcdShellSupplier             ## CONSUMES\r
 \r
+[BuildOptions.AARCH64]\r
+  # The tiny code model used by AARCH64 only supports binaries of up to 1 MB in\r
+  # size. Since the Shell application exceeds that when built in DEBUG mode,\r
+  # make sure we build it using the small code model instead.\r
+  GCC:DEBUG_*_*_CC_FLAGS = -mcmodel=small\r
+  GCC:DEBUG_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r