]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools ARM AARCH64: pass CC flags to linker for XIP modules as well
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 11 Aug 2016 10:57:53 +0000 (12:57 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 12 Aug 2016 07:01:58 +0000 (09:01 +0200)
commit6f8ecc41d75338826d208db1638814fa598fdf9d
tree4bcb5b41df548053fdb9f85847d82193bd55b09f
parentf358703983c37c388479d0ff78a9f26b211e151f
BaseTools ARM AARCH64: pass CC flags to linker for XIP modules as well

Commit 478f50990a ("BaseTools GCC: add the compiler flags to the linker
command line") added the compiler flags to the linker command line,
which is required for LTO to function correctly, since it involves code
generation at link time.

This patch failed to update the build rules for XIP modules on AARCH64,
which not only requires the ordinary CC flags but also the XIP CC flags
to prevent the LTO backend to, e.g., emit code that does not adhere to
the strict alignment rules we impose for code that may execute with the
MMU off.

So update the XIP link rules as well. Since AARCH64 and ARM are not
supported by any toolchains in the GCCLD build rule family, drop the
reference to GCCLD while we're at it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/build_rule.template