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>
This commit is contained in:
parent
2361b5eb5c
commit
8f9696510a
|
@ -33,6 +33,7 @@ config ARC
|
||||||
|
|
||||||
config ARM
|
config ARM
|
||||||
bool "ARM architecture"
|
bool "ARM architecture"
|
||||||
|
select ARCH_SUPPORTS_LTO
|
||||||
select CREATE_ARCH_SYMLINK
|
select CREATE_ARCH_SYMLINK
|
||||||
select HAVE_PRIVATE_LIBGCC if !ARM64
|
select HAVE_PRIVATE_LIBGCC if !ARM64
|
||||||
select SUPPORT_OF_CONTROL
|
select SUPPORT_OF_CONTROL
|
||||||
|
|
|
@ -45,6 +45,8 @@ obj-$(CONFIG_SEMIHOSTING) += semihosting.o
|
||||||
|
|
||||||
obj-y += bdinfo.o
|
obj-y += bdinfo.o
|
||||||
obj-y += sections.o
|
obj-y += sections.o
|
||||||
|
CFLAGS_REMOVE_sections.o := $(LTO_CFLAGS)
|
||||||
|
|
||||||
obj-y += stack.o
|
obj-y += stack.o
|
||||||
ifdef CONFIG_CPU_V7M
|
ifdef CONFIG_CPU_V7M
|
||||||
obj-y += interrupts_m.o
|
obj-y += interrupts_m.o
|
||||||
|
|
Loading…
Reference in New Issue