Revision: 18241
          http://sourceforge.net/p/edk2/code/18241
Author:   abiesheuvel
Date:     2015-08-20 06:39:04 +0000 (Thu, 20 Aug 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Leif Lindholm <[email protected]>
Tested-by: Leif Lindholm <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Application/Shell/Shell.inf

Modified: trunk/edk2/ShellPkg/Application/Shell/Shell.inf
===================================================================
--- trunk/edk2/ShellPkg/Application/Shell/Shell.inf     2015-08-20 02:57:05 UTC 
(rev 18240)
+++ trunk/edk2/ShellPkg/Application/Shell/Shell.inf     2015-08-20 06:39:04 UTC 
(rev 18241)
@@ -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


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to