[PATCH u-boot v4 35/36] ARM: don't use --gc-sections with LTO when using private libgcc
Simon Glass
sjg at chromium.org
Thu May 20 19:52:08 CEST 2021
On Thu, 20 May 2021 at 05:25, Marek Behún <marek.behun at nic.cz> wrote:
>
> When using LTO, we can throw away the --gc-sections flag, but only if
> using private libgcc.
>
> When using system's libgcc, --gc-sections is still needed, otherwise
> linking will fail due to undefined references to libc's symbols.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> ---
> arch/arm/config.mk | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list