diff options
Diffstat (limited to 'c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg')
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg b/c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg index 00d0fbf837..40038e6b9b 100644 --- a/c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg +++ b/c/src/lib/libbsp/sh/gensh2/make/custom/gensh2.cfg @@ -13,8 +13,10 @@ RTEMS_CPU_MODEL=sh7045 # This contains the compiler options necessary to select the CPU model # and (hopefully) optimize for it. -# CPU_CFLAGS = -m2 # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g +CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections + +LDFLAGS = -Wl,--gc-sections |