mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Onda VX747: commit some parts to get apps/ to compile (more will follow)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19954 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f7a06dd6fc
commit
04c7379ac5
21 changed files with 709 additions and 522 deletions
|
|
@ -6,9 +6,9 @@ OUTPUT_ARCH(MIPS)
|
|||
ENTRY(_start)
|
||||
STARTUP(target/mips/ingenic_jz47xx/crt0.o)
|
||||
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000)
|
||||
#define DRAMSIZE ((MEMORYSIZE-4) * 0x100000)
|
||||
|
||||
#define DRAMORIG 0x80004000
|
||||
#define DRAMORIG 0x80404000
|
||||
#define IRAMORIG 0x80000000
|
||||
#define IRAMSIZE 16K
|
||||
|
||||
|
|
@ -24,20 +24,9 @@ SECTIONS
|
|||
|
||||
.text :
|
||||
{
|
||||
loadaddress = .;
|
||||
_loadaddress = .;
|
||||
*(.init.text);
|
||||
*(.text*);
|
||||
*(.glue_7);
|
||||
*(.glue_7t);
|
||||
*(.rel.dyn);
|
||||
} > DRAM
|
||||
|
||||
.vectors :
|
||||
{
|
||||
_vectorsstart = .;
|
||||
KEEP(*(.vectors))
|
||||
*(.vectors);
|
||||
} > DRAM
|
||||
|
||||
. = ALIGN(4);
|
||||
|
|
@ -48,71 +37,67 @@ SECTIONS
|
|||
*(.rodata*);
|
||||
*(.rodata.str1.1);
|
||||
*(.rodata.str1.4);
|
||||
. = ALIGN(0x4);
|
||||
|
||||
/* Pseudo-allocate the copies of the data sections */
|
||||
_datacopy = .;
|
||||
} > DRAM
|
||||
|
||||
.data :
|
||||
{
|
||||
*(.icode);
|
||||
*(.irodata);
|
||||
*(.idata);
|
||||
*(.data*);
|
||||
*(.sdata*);
|
||||
. = ALIGN(0x4);
|
||||
_dataend = . ;
|
||||
} > DRAM
|
||||
|
||||
_gp = ALIGN(16);
|
||||
.got :
|
||||
{
|
||||
*(.got*)
|
||||
} > DRAM
|
||||
|
||||
. = ALIGN(4);
|
||||
|
||||
.bss :
|
||||
.data :
|
||||
{
|
||||
*(.data*);
|
||||
*(.sdata*);
|
||||
*(.rel.dyn);
|
||||
} > DRAM
|
||||
|
||||
. = ALIGN(4);
|
||||
|
||||
.iram IRAMORIG:
|
||||
{
|
||||
_iramstart = .;
|
||||
*(.vectors.1);
|
||||
. = 0x100;
|
||||
*(.vectors.2);
|
||||
. = 0x180;
|
||||
*(.vectors.3);
|
||||
. = 0x200;
|
||||
*(.vectors.4);
|
||||
*(.vectors);
|
||||
|
||||
*(.icode);
|
||||
*(.irodata);
|
||||
*(.idata);
|
||||
KEEP(*(.vectors*))
|
||||
_iramend = .;
|
||||
} > IRAM AT> DRAM
|
||||
_iramcopy = LOADADDR(.iram);
|
||||
|
||||
. = ALIGN(4);
|
||||
|
||||
.bss (NOLOAD):
|
||||
{
|
||||
_edata = .;
|
||||
*(.sbss*);
|
||||
*(.bss*);
|
||||
*(.ibss);
|
||||
*(COMMON)
|
||||
*(COMMON);
|
||||
*(.scommon*);
|
||||
_end = .;
|
||||
} > DRAM
|
||||
|
||||
.iram IRAMORIG:
|
||||
{
|
||||
. = 0x220; /* Vectors take in 0x80000000 -> 0x80000220 */
|
||||
_iramstart = .;
|
||||
*(.icode)
|
||||
*(.irodata)
|
||||
*(.idata)
|
||||
. = ALIGN(0x4);
|
||||
_iramend = .;
|
||||
} > IRAM AT> DRAM
|
||||
|
||||
_iramcopy = LOADADDR(.iram);
|
||||
|
||||
_bootend = .;
|
||||
|
||||
.ibss (NOLOAD) :
|
||||
{
|
||||
_iedata = .;
|
||||
*(.ibss)
|
||||
. = ALIGN(0x4);
|
||||
*(.ibss*)
|
||||
_iend = .;
|
||||
} > IRAM
|
||||
|
||||
.stack :
|
||||
. = ALIGN(4);
|
||||
|
||||
.stack (NOLOAD):
|
||||
{
|
||||
*(.stack)
|
||||
. = ALIGN(0x4);
|
||||
_stackbegin = .;
|
||||
stackbegin = .;
|
||||
. += 0x2000;
|
||||
_stackend = .;
|
||||
stackend = .;
|
||||
} > IRAM
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue