]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/sh/config.mk
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
[people/ms/u-boot.git] / arch / sh / config.mk
index 415c94979848f6980e6457200b46f05baf271308..4ef85e3e5de74ffc139e44bbb7b5562a89a2c56f 100644 (file)
@@ -30,5 +30,5 @@ endif
 
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
 PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
-
+LDFLAGS_u-boot = --gc-sections
 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds