diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-08-20 06:39:04 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-08-20 06:39:04 +0000 |
commit | ad93e042986d1c8850f2be47142b253c0f3f110b (patch) | |
tree | 1e90bf133e73d7b23994f71dd58fedd7cc268fde /ShellPkg | |
parent | 0cebfe81f94be36116af66d0a3134ce18d89eec1 (diff) | |
download | edk2-platforms-ad93e042986d1c8850f2be47142b253c0f3f110b.tar.xz |
ShellPkg: force use of AARCH64 small model when building DEBUG shell
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
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Application/Shell/Shell.inf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/Shell.inf b/ShellPkg/Application/Shell/Shell.inf index f703936922..09aecf717b 100644 --- a/ShellPkg/Application/Shell/Shell.inf +++ b/ShellPkg/Application/Shell/Shell.inf @@ -108,3 +108,9 @@ gEfiShellPkgTokenSpaceGuid.PcdShellForceConsole ## CONSUMES
gEfiShellPkgTokenSpaceGuid.PcdShellSupplier ## CONSUMES
+[BuildOptions.AARCH64]
+ # 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.
+ GCC:DEBUG_*_*_CC_FLAGS = -mcmodel=small
+ GCC:DEBUG_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|