mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
ARM: don't use -ffunction-sections/-fdata-sections with LTO build
When building with LTO, using -ffunction-sections/-fdata-sections is not useful anymore. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8f9696510a
commit
75c7d10c1f
@ -16,8 +16,12 @@ CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections \
|
|||||||
CFLAGS_EFI := -fpic -fshort-wchar
|
CFLAGS_EFI := -fpic -fshort-wchar
|
||||||
|
|
||||||
LDFLAGS_FINAL += --gc-sections
|
LDFLAGS_FINAL += --gc-sections
|
||||||
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
|
|
||||||
-fno-common -ffixed-r9
|
ifndef CONFIG_LTO
|
||||||
|
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
endif
|
||||||
|
|
||||||
|
PLATFORM_RELFLAGS += -fno-common -ffixed-r9
|
||||||
PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
|
PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
|
||||||
$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user