Skip to content
Snippets Groups Projects
Commit fd725691 authored by Tom Rini's avatar Tom Rini Committed by Albert ARIBAUD
Browse files

arm: Enable -ffunction-sections / -fdata-sections / --gc-sections


While other architectures have enabled these gcc / ld options for some
time on U-Boot itself, ARM has only been doing this on SPL.  Enable this
on full U-Boot as well now.

Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 0ad6c34c
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@ CONFIG_STANDALONE_LOAD_ADDR = 0xc100000
endif
endif
LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
# Support generic board on ARM
__HAVE_ARCH_GENERIC_BOARD := y
......
......@@ -31,10 +31,6 @@ PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
PLATFORM_LDFLAGS += -EB
USE_PRIVATE_LIBGCC = yes
# -fdata-sections triggers "section .bss overlaps section .rel.dyn" linker error
PLATFORM_RELFLAGS += -ffunction-sections
LDFLAGS_u-boot += --gc-sections
# =========================================================================
#
# Supply options according to compiler version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment