projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce a new linker flag LDFLAGS_FINAL
[platform/kernel/u-boot.git]
/
arch
/
nios2
/
config.mk
diff --git
a/arch/nios2/config.mk
b/arch/nios2/config.mk
index
793cc43
..
d241a96
100644
(file)
--- a/
arch/nios2/config.mk
+++ b/
arch/nios2/config.mk
@@
-30,3
+30,6
@@
PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
PLATFORM_CPPFLAGS += -G0
LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
+
+LDFLAGS_FINAL += --gc-sections
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections