summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/app.lds
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2014-01-15 23:43:10 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:48:21 +0100
commit2b02cbe1ccbf2fcdcc164c6a4139f6666aed23c9 (patch)
treee2e04ac78654e9e9a41c5d6c34fa7784e5c0663d /firmware/target/arm/imx233/app.lds
parent04fc97b3623f31f081694aa5a1f122b312aa9642 (diff)
downloadrockbox-2b02cbe1ccbf2fcdcc164c6a4139f6666aed23c9.tar.gz
rockbox-2b02cbe1ccbf2fcdcc164c6a4139f6666aed23c9.tar.bz2
rockbox-2b02cbe1ccbf2fcdcc164c6a4139f6666aed23c9.zip
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>
Diffstat (limited to 'firmware/target/arm/imx233/app.lds')
-rw-r--r--firmware/target/arm/imx233/app.lds30
1 files changed, 15 insertions, 15 deletions
diff --git a/firmware/target/arm/imx233/app.lds b/firmware/target/arm/imx233/app.lds
index b378f9ea16..d4ca97ff5f 100644
--- a/firmware/target/arm/imx233/app.lds
+++ b/firmware/target/arm/imx233/app.lds
@@ -47,6 +47,20 @@ SECTIONS
*(.rodata*)
} > DRAM
+ .dramcopyend (NOLOAD) :
+ {
+ _dramcopyend = .;
+ } > DRAM
+
+ .init ENDAUDIOADDR :
+ {
+ _initstart = .;
+ *(.init*)
+ _initend = .;
+ } AT> DRAM
+
+ _initcopy = LOADADDR(.init);
+
.itext :
{
_iramstart = .; // always 0
@@ -68,21 +82,7 @@ SECTIONS
_iend = .;
} > IRAM
- .init ENDAUDIOADDR :
- {
- _initstart = .;
- *(.init*)
- _initend = .;
- } AT> DRAM
-
- _initcopy = LOADADDR(.init);
-
- .dramcopyend (NOLOAD) :
- {
- _dramcopyend = .;
- } > DRAM
-
- .stack (NOLOAD) :
+ .stack _dramcopyend (NOLOAD) :
{
*(.stack)
stackbegin = .;