imx233: fix app.lds to properly support INIT_ATTR

Change-Id: I1a917511e7e1540856815c77c4d996d1b8a03606
Reviewed-on: http://gerrit.rockbox.org/725
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
Marcin Bukat 2014-01-15 23:43:10 +01:00 committed by Amaury Pouly
parent 04fc97b362
commit 2b02cbe1cc

View file

@ -47,6 +47,20 @@ SECTIONS
*(.rodata*) *(.rodata*)
} > DRAM } > DRAM
.dramcopyend (NOLOAD) :
{
_dramcopyend = .;
} > DRAM
.init ENDAUDIOADDR :
{
_initstart = .;
*(.init*)
_initend = .;
} AT> DRAM
_initcopy = LOADADDR(.init);
.itext : .itext :
{ {
_iramstart = .; // always 0 _iramstart = .; // always 0
@ -68,21 +82,7 @@ SECTIONS
_iend = .; _iend = .;
} > IRAM } > IRAM
.init ENDAUDIOADDR : .stack _dramcopyend (NOLOAD) :
{
_initstart = .;
*(.init*)
_initend = .;
} AT> DRAM
_initcopy = LOADADDR(.init);
.dramcopyend (NOLOAD) :
{
_dramcopyend = .;
} > DRAM
.stack (NOLOAD) :
{ {
*(.stack) *(.stack)
stackbegin = .; stackbegin = .;