summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg')
-rw-r--r--c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg5
1 files changed, 4 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg b/c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg
index 9245a85e7f..076ba3db64 100644
--- a/c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg
+++ b/c/src/lib/libbsp/sh/shsim/make/custom/simsh4.cfg
@@ -8,8 +8,11 @@ RTEMS_CPU=sh
RTEMS_CPU_MODEL=shgdb
# This contains the compiler options necessary to select the CPU model
-# and (hopefully) optimize for it.
+# and (hopefully) optimize for it.
CPU_CFLAGS = -m4 -ml
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections