summaryrefslogtreecommitdiff
path: root/arch/arm/lib/Makefile
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 13:24:22 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit8f9696510afc2b52ebeba5d1db4883cf3331c206 (patch)
treedf82e1281e45945237fee8e4c947c1d396f35a3f /arch/arm/lib/Makefile
parent2361b5eb5c3e116519518848fe8db9aed4841f4a (diff)
downloadu-boot-8f9696510afc2b52ebeba5d1db4883cf3331c206.tar.gz
u-boot-8f9696510afc2b52ebeba5d1db4883cf3331c206.tar.bz2
u-boot-8f9696510afc2b52ebeba5d1db4883cf3331c206.zip
ARM: make LTO available
Make LTO available for ARM architecture. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/lib/Makefile')
-rw-r--r--arch/arm/lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 61bef1d5af..7f66332715 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -45,6 +45,8 @@ obj-$(CONFIG_SEMIHOSTING) += semihosting.o
obj-y += bdinfo.o
obj-y += sections.o
+CFLAGS_REMOVE_sections.o := $(LTO_CFLAGS)
+
obj-y += stack.o
ifdef CONFIG_CPU_V7M
obj-y += interrupts_m.o