]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: don't use --gc-sections with LTO when using private libgcc
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:24 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit613383b2043d69cfe8bfc93747c3fb9006e32569
tree0c9c960d22440e952ab627489619b445ec2e34c4
parentbe5c812d491bad2578edeb8a36fa016d34ee58b4
ARM: don't use --gc-sections with LTO when using private libgcc

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@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/config.mk