summaryrefslogtreecommitdiff
path: root/arch/arc/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/config.mk')
-rw-r--r--arch/arc/config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arc/config.mk b/arch/arc/config.mk
index 3ed0c282bae..d040454d1aa 100644
--- a/arch/arc/config.mk
+++ b/arch/arc/config.mk
@@ -51,9 +51,10 @@ PLATFORM_CPPFLAGS += -mcpu=archs
endif
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
+PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections
# Needed for relocation
-LDFLAGS_FINAL += -pie
+LDFLAGS_FINAL += -pie --gc-sections
# Load address for standalone apps
CONFIG_STANDALONE_LOAD_ADDR ?= 0x82000000