summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/app.lds
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-23 20:40:52 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-23 20:40:52 +0000
commit1322b58b17201ba70d35e6121ddaa87c0dceaf5b (patch)
treee18ac4ea1ca21a4c1ad00c987cf2e9038d19f883 /firmware/target/arm/imx233/app.lds
parentd1e241f55a4b09149019d459f4db1ae79e6d8c1b (diff)
downloadrockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.tar.gz
rockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.tar.bz2
rockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.zip
imx233/fuze+: rework crt0 and linker script to be able to load at any address and self-copy at the right one
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30587 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/app.lds')
-rw-r--r--firmware/target/arm/imx233/app.lds10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/app.lds b/firmware/target/arm/imx233/app.lds
index a961222749..0eeecc1ab8 100644
--- a/firmware/target/arm/imx233/app.lds
+++ b/firmware/target/arm/imx233/app.lds
@@ -34,6 +34,11 @@ SECTIONS
{
loadaddress = UNCACHED_DRAM_ADDR;
_loadaddress = UNCACHED_DRAM_ADDR;
+
+ .dramcopystart (NOLOAD) :
+ {
+ _dramcopystart = .;
+ } > DRAM
.text :
{
@@ -76,6 +81,11 @@ SECTIONS
_initcopy = LOADADDR(.init);
+ .dramcopyend (NOLOAD) :
+ {
+ _dramcopyend = .;
+ } > DRAM
+
.stack (NOLOAD) :
{
*(.stack)