[PATCH u-boot v4 35/36] ARM: don't use --gc-sections with LTO when using private libgcc

Tom Rini trini at konsulko.com
Tue May 25 02:57:37 CEST 2021

On Thu, May 20, 2021 at 01:24:24PM +0200, Marek Behún 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>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/85dd2ed1/attachment.sig>

More information about the U-Boot mailing list