summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 @@
157 (CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \ 157 (CONFIG_CPU == MCF5249) || /* Coldfire: core, plugins, codecs */ \
158 (CONFIG_CPU == PP5020) || /* iPod: core, plugins, codecs */ \ 158 (CONFIG_CPU == PP5020) || /* iPod: core, plugins, codecs */ \
159 (CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */ 159 (CONFIG_CPU == TCC730)) /* CalmRISC16: core, (plugins, codecs) */
160#if CONFIG_CPU != PP5020
161#define ICODE_ATTR __attribute__ ((section(".icode"))) 160#define ICODE_ATTR __attribute__ ((section(".icode")))
162#else
163/* TODO: We get linker errors for the arm when putting code in IRAM so it
164 is temporarily disabled. */
165#define ICODE_ATTR
166#endif
167#define ICONST_ATTR __attribute__ ((section(".irodata"))) 161#define ICONST_ATTR __attribute__ ((section(".irodata")))
168#define IDATA_ATTR __attribute__ ((section(".idata"))) 162#define IDATA_ATTR __attribute__ ((section(".idata")))
169#define IBSS_ATTR __attribute__ ((section(".ibss"))) 163#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 () {
170 170
171arm7tdmicc () { 171arm7tdmicc () {
172 prefixtools arm-elf- 172 prefixtools arm-elf-
173 GCCOPTS="$CCOPTS -mcpu=arm7tdmi" 173 GCCOPTS="$CCOPTS -mcpu=arm7tdmi -ffunction-sections -mlong-calls"
174 GCCOPTIMIZE="-fomit-frame-pointer" 174 GCCOPTIMIZE="-fomit-frame-pointer"
175 endian="little" 175 endian="little"
176} 176}