commit | 701bc2eaad5e82001a8b758ae92af00f6a810c5a | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Thu May 20 13:24:24 2021 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon May 24 14:21:30 2021 -0400 |
tree | 0c9c960d22440e952ab627489619b445ec2e34c4 | |
parent | 2a9079e365fab6d1d6d93afa8736f050c865c1b5 [diff] |
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>