summaryrefslogtreecommitdiff
path: root/arch/nios2/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/config.mk')
-rw-r--r--arch/nios2/config.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/config.mk b/arch/nios2/config.mk
index fa93180..d241a96 100644
--- a/arch/nios2/config.mk
+++ b/arch/nios2/config.mk
@@ -31,5 +31,5 @@ PLATFORM_CPPFLAGS += -G0
LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
-LDFLAGS_u-boot += --gc-sections
+LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections