]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Conf/build_rule.template
BaseTools GCC: use 'gcc' as the linker command for GCC44 and later
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 23 Jul 2016 08:19:46 +0000 (10:19 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Aug 2016 06:40:43 +0000 (08:40 +0200)
commita1b8baccc30ba7c3911359e271b0e0a3ef56d501
tree7a9f65043fb5684ee0357e4732cc18beee6b8286
parentbefb3ba5150200ce94044c8c27e6e812d8e89680
BaseTools GCC: use 'gcc' as the linker command for GCC44 and later

To accommodate upcoming GCCx toolchain versions that require 'gcc' to
be used as the linker in order to support LTO, switch GCC44 and later
(including CLANG35) to a new DLINK build rule that invokes 'gcc' as the
linker instead of 'ld'. Since gcc expects its command line arguments in
a different format, and expects arguments that it needs to pass to the
linker to be prefixed with '-Wl,', this involves changes to most of the
DLINK_FLAGS definitions in tools_def.template, as well as some changes to
module .INF files that set their own linker options.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf
BaseTools/Conf/build_rule.template
BaseTools/Conf/tools_def.template
EmulatorPkg/Unix/Host/Host.inf