summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg')
-rw-r--r--c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg b/c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg
index 2f190020f5..693eb9f762 100644
--- a/c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg
+++ b/c/src/lib/libbsp/arm/gdbarmsim/make/custom/armcortexa9.cfg
@@ -14,3 +14,7 @@ CPU_CFLAGS = -mcpu=cortex-a9
# optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g
+
+# Add CFLAGS and LDFLAGS for compiling and linking with per item sections
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--gc-sections