summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg')
-rw-r--r--c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg b/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg
index 68fe7195d8..02d198bfe3 100644
--- a/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg
+++ b/c/src/lib/libbsp/mips/hurricane/make/custom/hurricane.cfg
@@ -12,6 +12,9 @@ CPU_CFLAGS = -mips3 -G0 -EL
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -fomit-frame-pointer
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
define bsp-post-link
$(OBJCOPY) -O srec $@ $(basename $@).srec1