diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-08 20:42:51 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-08 20:42:51 +0000 |
commit | 1b275d8ddb6407ef8965e81e4916949ca343d5f9 (patch) | |
tree | dc8f5450508196e2505f823b477978c46d0cde41 /firmware/export/config.h | |
parent | 17585a991cdd045ea5a166dd78d609262ebf3efb (diff) |
Some static data is only used by .init functions. Add .initdata to declare such data (otherwise section conflicts arise). For i.MX31, use INITDATA_ATTR in the appropriate places.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29008 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config.h')
-rw-r--r-- | firmware/export/config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index 8e9afe5937..eca736ddae 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -835,9 +835,11 @@ Lyre prototype 1 */ * from crashes to freezes to exploding daps. */ #define INIT_ATTR __attribute__ ((section(".init"))) +#define INITDATA_ATTR __attribute__ ((section(".initdata"))) #define HAVE_INIT_ATTR #else #define INIT_ATTR +#define INITDATA_ATTR #endif #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) |