[PATCH 02/17] arm: Exclude eabi_compat from LTO
Ilias Apalodimas
ilias.apalodimas at linaro.org
Sun Mar 9 09:47:11 CET 2025
On Mon, 24 Feb 2025 at 07:55, Sam Edwards <cfsworks at gmail.com> wrote:
>
> These symbols need to survive the IR-level dead function elimination pass,
> since nothing at the IR level is referencing them (calls to these are inserted
> later, at codegen time).
>
> Signed-off-by: Sam Edwards <CFSworks at gmail.com>
> ---
> arch/arm/lib/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
> index 1c95dd6fed2..74cd5051552 100644
> --- a/arch/arm/lib/Makefile
> +++ b/arch/arm/lib/Makefile
> @@ -92,6 +92,7 @@ obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
> # For EABI conformant tool chains, provide eabi_compat()
> ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
> extra-y += eabi_compat.o
> +CFLAGS_REMOVE_eabi_compat.o := $(LTO_CFLAGS)
> endif
>
> # some files can only build in ARM or THUMB2, not THUMB1
> --
> 2.45.2
>
Acked-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
More information about the U-Boot
mailing list