From cf7a71c3021eedafdb69addf6392b1b51e4d1935 Mon Sep 17 00:00:00 2001 From: Tom Ross Date: Fri, 27 Feb 2009 23:15:59 +0000 Subject: r20124 broke codecs on targets without IRAM such as Gigabeat F. Behavior should be identical to r20123 on all sim builds and targets and apply a more correct fix for OS X. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20135 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/export/config.h b/firmware/export/config.h index 963818551f..55d5ffd06f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -624,7 +624,6 @@ #define ICONST_ATTR __attribute__ ((section(".irodata"))) #define IDATA_ATTR __attribute__ ((section(".idata"))) #define IBSS_ATTR __attribute__ ((section(".ibss"))) -#define DATA_ATTR __attribute__ ((section(".data"))) #define USE_IRAM #if CONFIG_CPU != SH7034 #define PLUGIN_USE_IRAM @@ -642,10 +641,15 @@ #define ICONST_ATTR #define IDATA_ATTR #define IBSS_ATTR -#define DATA_ATTR #define STATICIRAM static #endif +#if defined(SIMULATOR) && defined(__APPLE__) +#define DATA_ATTR __attribute__ ((section(".section __DATA, __data"))) +#else +#define DATA_ATTR __attribute__ ((section(".data"))) +#endif + #ifndef IRAM_LCDFRAMEBUFFER /* if the LCD framebuffer has not been moved to IRAM, define it empty here */ #define IRAM_LCDFRAMEBUFFER -- cgit v1.2.3