Mac doesn't handle placing variables in specific sections very well. Building the sim on OS X is now possible once again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20124 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
736f956700
commit
5d190bc13c
3 changed files with 5 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "config.h"
|
||||
#include "codeclib.h"
|
||||
|
||||
struct codec_api *ci __attribute__ ((section (".data")));
|
||||
struct codec_api *ci DATA_ATTR;
|
||||
|
||||
extern unsigned char iramcopy[];
|
||||
extern unsigned char iramstart[];
|
||||
|
|
|
@ -805,14 +805,14 @@ struct plugin_header {
|
|||
extern unsigned char plugin_start_addr[];
|
||||
extern unsigned char plugin_end_addr[];
|
||||
#define PLUGIN_HEADER \
|
||||
const struct plugin_api *rb __attribute__ ((section (".data"))); \
|
||||
const struct plugin_api *rb DATA_ATTR; \
|
||||
const struct plugin_header __header \
|
||||
__attribute__ ((section (".header")))= { \
|
||||
PLUGIN_MAGIC, TARGET_ID, PLUGIN_API_VERSION, \
|
||||
plugin_start_addr, plugin_end_addr, plugin_start, &rb };
|
||||
#else /* SIMULATOR */
|
||||
#define PLUGIN_HEADER \
|
||||
const struct plugin_api *rb __attribute__ ((section (".data"))); \
|
||||
const struct plugin_api *rb DATA_ATTR; \
|
||||
const struct plugin_header __header \
|
||||
__attribute__((visibility("default"))) = { \
|
||||
PLUGIN_MAGIC, TARGET_ID, PLUGIN_API_VERSION, \
|
||||
|
|
|
@ -624,6 +624,7 @@
|
|||
#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
|
||||
|
@ -641,6 +642,7 @@
|
|||
#define ICONST_ATTR
|
||||
#define IDATA_ATTR
|
||||
#define IBSS_ATTR
|
||||
#define DATA_ATTR
|
||||
#define STATICIRAM static
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue