summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-13 11:28:48 +0000
committerDave Chapman <dave@dchapman.com>2005-11-13 11:28:48 +0000
commit7944771772042d924a9779d9126837a01cc0ad36 (patch)
treef6df844bfd285cd89e43b10802512380199ee326
parentc01775ff4177d491a79dc65403698c4f39350de1 (diff)
downloadrockbox-7944771772042d924a9779d9126837a01cc0ad36.tar.gz
rockbox-7944771772042d924a9779d9126837a01cc0ad36.zip
Force -mlong-calls for iPod builds. This issue still needs investigating as we do not want long-calls everywhere. The -ffunction-sections is also required to force gcc use long calls.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7841 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config.h6
-rwxr-xr-xtools/configure2
2 files changed, 1 insertions, 7 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index b9691cd8fa..41e639f125 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -157,13 +157,7 @@
(CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \
(CONFIG_CPU == PP5020) || /* iPod: core, plugins, codecs */ \
(CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */
-#if CONFIG_CPU != PP5020
#define ICODE_ATTR __attribute__ ((section(".icode")))
-#else
-/* TODO: We get linker errors for the arm when putting code in IRAM so it
- is temporarily disabled. */
-#define ICODE_ATTR
-#endif
#define ICONST_ATTR __attribute__ ((section(".irodata")))
#define IDATA_ATTR __attribute__ ((section(".idata")))
#define IBSS_ATTR __attribute__ ((section(".ibss")))
diff --git a/tools/configure b/tools/configure
index 38d95a71a0..ca2cec5d09 100755
--- a/tools/configure
+++ b/tools/configure
@@ -170,7 +170,7 @@ coldfirecc () {
arm7tdmicc () {
prefixtools arm-elf-
- GCCOPTS="$CCOPTS -mcpu=arm7tdmi"
+ GCCOPTS="$CCOPTS -mcpu=arm7tdmi -ffunction-sections -mlong-calls"
GCCOPTIMIZE="-fomit-frame-pointer"
endian="little"
}