diff options
Diffstat (limited to 'c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.cfg')
-rw-r--r-- | c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.cfg b/c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.cfg index aa4b542cae..a60a8c6307 100644 --- a/c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.cfg +++ b/c/src/lib/libbsp/mips/rbtx4938/make/custom/rbtx4938.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) --srec-len=30 -O srec $@ $(basename $@)$(DOWNEXT) |