rk27xx: rework linker scripts and crt0.S

Change-Id: Id1d509056026bc67e1a5051c60818336933d4aeb
This commit is contained in:
Marcin Bukat 2012-02-28 15:51:09 +01:00
parent 7569450d8e
commit 1c565c9c3b
3 changed files with 79 additions and 84 deletions

View file

@ -37,42 +37,28 @@ SECTIONS
.intvect : {
_intvectstart = . ;
*(.intvect)
_intvectend = _newstart ;
KEEP(*(.intvect))
_intvectend = . ;
} > IRAM AT > DRAM
_intvectcopy = LOADADDR(.intvect) ;
_intvectcopy = LOADADDR(.intvect);
.text : {
*(.init.text)
*(.text*)
*(.icode*)
*(.glue_7*)
} > DRAM
.data : {
.rodata : {
*(.rodata*)
*(.data*)
*(.ncdata*);
*(.irodata*)
. = ALIGN(0x4);
} > DRAM
.iram :
{
_iramstart = .;
*(.icode)
*(.irodata)
*(.idata)
. = ALIGN(0x4);
_iramend = .;
} > DRAM
_iramcopy = LOADADDR(.iram) ;
.ibss (NOLOAD) :
{
_iedata = .;
*(.qharray)
*(.ibss)
. = ALIGN(0x4);
_iend = .;
.data : {
*(.data*)
*(.idata*)
. = ALIGN(0x4);
} > DRAM
.stack (NOLOAD) :
@ -95,7 +81,6 @@ SECTIONS
_edata = .;
*(.bss*);
*(.ibss);
*(.ncbss*);
*(COMMON);
. = ALIGN(0x4);
_end = .;