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
This commit is contained in:
Amaury Pouly 2011-09-23 20:40:52 +00:00
parent d1e241f55a
commit 1322b58b17
4 changed files with 51 additions and 8 deletions

View file

@ -26,6 +26,11 @@ SECTIONS
_loadaddress = UNCACHED_DRAM_ADDR;
loadaddressend = UNCACHED_DRAM_ADDR + RAM_HOLE;
_loadaddressend = UNCACHED_DRAM_ADDR + RAM_HOLE;
.dramcopystart (NOLOAD) :
{
_dramcopystart = .;
} > DRAM
.text :
{
@ -48,6 +53,11 @@ SECTIONS
_iramcopy = LOADADDR(.itext);
.dramcopyend (NOLOAD) :
{
_dramcopyend = .;
} > DRAM
.ibss (NOLOAD) :
{
_iedata = .;