]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Conf/tools_def.template
BaseTools AARCH64: move DEBUG GCC49 to the small code model
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 25 Mar 2016 11:33:28 +0000 (12:33 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 25 Mar 2016 11:37:47 +0000 (12:37 +0100)
commitf37d891c1b870b294964adf65f619a661700fcab
tree7f9457634ce9f7c32717d2c8b4187c5dafb335fb
parentf5404a3eba1d3bae54e6b02be0a87f8f471eb732
BaseTools AARCH64: move DEBUG GCC49 to the small code model

When building AARCH64 platforms that include a Shell binary built from
source, we run into trouble when using the tiny code model for DEBUG
builds. The reason is that the Shell binary built in DEBUG mode exceeds
the 1 MB range of the ADR instruction, so anything that gets pulled into
the final link of the Shell binary either needs to be built with the small
or large model, or needs to be sorted in some way to put the ADR references
close to their targets.

Since code size is not a big concern for DEBUG builds anyway, let's move
to the small code model for all modules when using DEBUG GCC49. This way,
there is no need for workarounds that are specific to UEFI_APPLICATION
modules in general, or the Shell application in particular.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
BaseTools/Conf/tools_def.template