aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazunori Asayama <asayama@sm.sony.co.jp>2009-02-05 18:30:35 -0800
committerYuji Mano <yuji.mano@am.sony.com>2009-02-11 11:01:30 -0800
commit0e5300b625de0b93cb11864fceffc275e0d546a0 (patch)
treef4cd00532566cb2da548ee0085d3630f1d6dd59e
parenta42fb801fee8f210a8b724a43ad838561c14abcf (diff)
downloadmars-src-0e5300b625de0b93cb11864fceffc275e0d546a0.tar.gz
base: Optimize build options
Optimize compiler options (base) This patch optimizes compiler options when building the base library and MARS kernel so reduces code size. Signed-off-by: Kazunori Asayama <asayama@sm.sony.co.jp> Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
-rw-r--r--base/src/mpu/kernel/Makefile.am4
-rw-r--r--base/src/mpu/lib/Makefile.am2
2 files changed, 6 insertions, 0 deletions
diff --git a/base/src/mpu/kernel/Makefile.am b/base/src/mpu/kernel/Makefile.am
index e2258a0..7942642 100644
--- a/base/src/mpu/kernel/Makefile.am
+++ b/base/src/mpu/kernel/Makefile.am
@@ -73,6 +73,8 @@ AM_CCASFLAGS = \
AM_CFLAGS = \
$(extra_cflags) \
-mfixed-range=80-127 \
+ -ffunction-sections \
+ -fdata-sections \
-W \
-Wall \
-Wunused \
@@ -86,6 +88,8 @@ AM_LDFLAGS = \
$(extra_ldflags) \
-Wl,-Map -Wl,$@.map -Wl,--cref \
-Wl,-gc-sections \
+ -Wl,--sort-common \
+ -Wl,--sort-section -Wl,alignment \
-Wl,-N \
-Wl,-s
diff --git a/base/src/mpu/lib/Makefile.am b/base/src/mpu/lib/Makefile.am
index 64585f5..76a8627 100644
--- a/base/src/mpu/lib/Makefile.am
+++ b/base/src/mpu/lib/Makefile.am
@@ -76,6 +76,8 @@ AM_CPPFLAGS = \
AM_CFLAGS = \
$(extra_cflags) \
+ -ffunction-sections \
+ -fdata-sections \
-W \
-Wall \
-Wunused \