mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Sansav2 bootloader: explicitely link everything into IRAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18937 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29a5373724
commit
f4a0f457be
1 changed files with 20 additions and 6 deletions
|
|
@ -5,23 +5,37 @@ OUTPUT_FORMAT(elf32-littlearm)
|
|||
OUTPUT_ARCH(arm)
|
||||
STARTUP(target/arm/crt0.o)
|
||||
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000)
|
||||
#define DRAMORIG 0x30000000
|
||||
#define IRAMORIG 0
|
||||
#define IRAMSIZE 0x50000
|
||||
|
||||
MEMORY
|
||||
{
|
||||
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
|
||||
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/*. = IRAMORIG; */
|
||||
. = IRAMORIG;
|
||||
|
||||
.text : {
|
||||
*(.init.text)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
*(.text*)
|
||||
}
|
||||
} > IRAM
|
||||
|
||||
.data : {
|
||||
*(.icode)
|
||||
*(.irodata)
|
||||
*(.idata)
|
||||
*(.data*)
|
||||
*(.ncdata*);
|
||||
*(.ncdata*)
|
||||
*(.rodata*)
|
||||
_dataend = . ;
|
||||
}
|
||||
} > IRAM
|
||||
|
||||
.stack :
|
||||
{
|
||||
|
|
@ -31,7 +45,7 @@ SECTIONS
|
|||
. += 0x2000;
|
||||
_stackend = .;
|
||||
stackend = .;
|
||||
}
|
||||
} > IRAM
|
||||
|
||||
.bss : {
|
||||
_edata = .;
|
||||
|
|
@ -39,5 +53,5 @@ SECTIONS
|
|||
*(.ibss);
|
||||
*(.ncbss*);
|
||||
_end = .;
|
||||
}
|
||||
} > IRAM
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue