From: Tom Rini Date: Thu, 25 Apr 2013 07:40:22 +0000 (+0000) Subject: arm: Enable -ffunction-sections / -fdata-sections / --gc-sections X-Git-Tag: sz_175~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe31ae3c538d9ce9a9710b11e108f2681f4e87e;p=pandora-u-boot.git 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 Signed-off-by: Tom Rini --- diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 24b9d7c8025..c43ebdd6f4c 100644 --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -31,6 +31,9 @@ CONFIG_STANDALONE_LOAD_ADDR = 0xc100000 endif endif +LDFLAGS_FINAL += --gc-sections +PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections + PLATFORM_CPPFLAGS += -DCONFIG_ARM -D__ARM__ # Choose between ARM/Thumb instruction sets