arm-trusted-firmware/lib/romlib
Chris Kay 2f1c5e7eb1 build: use GCC to link by default
When configuring GNU GCC as the C compiler, we usually use the GNU BFD
linker directly to link by default. However, this complicates things
because we also need to support LTO, which can only be done when linking
is done via the C compiler, and we cannot change the linker later on if
some other part of the build system wants to enable LTO.

This change migrates the default choice of linker to GCC if the C
compiler is GCC, in order to enable this use-case. This should have no
impact on anything outside of the build system, as by default GCC merely
acts as a wrapper around BFD.

Change-Id: I40771be2b0571def67bbfde9e877e7629ec8cdaa
Signed-off-by: Chris Kay <chris.kay@arm.com>
2024-04-02 09:52:17 +00:00
..
templates Romlib makefile refactoring and script rewriting 2019-07-22 18:07:57 +02:00
Makefile build: use GCC to link by default 2024-04-02 09:52:17 +00:00
gen_combined_bl1_romlib.sh chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
init.s chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
jmptbl.i chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
romlib.ld.S chore: update to use Arm word across TF-A 2023-08-08 15:12:30 +01:00
romlib_generator.py Romlib makefile refactoring and script rewriting 2019-07-22 18:07:57 +02:00