forked from len0rd/rockbox
fix to enable plugins to build fine for h300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
01377e2e57
commit
3a78ab9a4f
1 changed files with 8 additions and 4 deletions
|
|
@ -14,7 +14,11 @@ OUTPUT_FORMAT(elf32-sh)
|
||||||
#define STUBOFFSET 0
|
#define STUBOFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef IRIVER_H100
|
#if defined(IRIVER_H100) || defined(IRIVER_H300)
|
||||||
|
#define ARCH_IRIVER
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ARCH_IRIVER
|
||||||
#define DRAMORIG 0x31000000
|
#define DRAMORIG 0x31000000
|
||||||
#define IRAMORIG 0x10010000
|
#define IRAMORIG 0x10010000
|
||||||
#define IRAMSIZE 0x8000
|
#define IRAMSIZE 0x8000
|
||||||
|
|
@ -39,7 +43,7 @@ OUTPUT_FORMAT(elf32-sh)
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
|
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
|
||||||
#ifdef IRIVER_H100
|
#ifdef ARCH_IRIVER
|
||||||
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -68,12 +72,12 @@ SECTIONS
|
||||||
*(.rodata.str1.1)
|
*(.rodata.str1.1)
|
||||||
*(.rodata.str1.4)
|
*(.rodata.str1.4)
|
||||||
. = ALIGN(0x4);
|
. = ALIGN(0x4);
|
||||||
#ifdef IRIVER_H100
|
#ifdef ARCH_IRIVER
|
||||||
iramcopy = .;
|
iramcopy = .;
|
||||||
#endif
|
#endif
|
||||||
} > PLUGIN_RAM
|
} > PLUGIN_RAM
|
||||||
|
|
||||||
#ifdef IRIVER_H100
|
#ifdef ARCH_IRIVER
|
||||||
.iram IRAMORIG : AT ( iramcopy)
|
.iram IRAMORIG : AT ( iramcopy)
|
||||||
{
|
{
|
||||||
iramstart = .;
|
iramstart = .;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue