Sansa AMS: do not load stack and bss inside the rockbox binary (FS#9593)

Define _loadaddress to fix RAM usage reported by mkinfo.pl

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19278 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2008-12-01 03:54:27 +00:00
parent ca123a1ad3
commit c9ba3adf0d

View file

@ -40,6 +40,7 @@ SECTIONS
.text : .text :
{ {
_loadaddress = .;
_textstart = .; _textstart = .;
*(.text) *(.text)
*(.text*) *(.text*)
@ -70,23 +71,6 @@ SECTIONS
_initdata_end =.; _initdata_end =.;
.stack (NOLOAD) :
{
*(.stack)
stackbegin = .;
. += 0x2000;
stackend = .;
} > DRAM
.bss (NOLOAD) :
{
_edata = .;
*(.bss*)
*(COMMON)
. = ALIGN(0x4);
_end = .;
} > DRAM
.vectors IRAMORIG: .vectors IRAMORIG:
{ {
_vectors_start = .; _vectors_start = .;
@ -116,6 +100,23 @@ SECTIONS
_iramcopy = LOADADDR(.iram); _iramcopy = LOADADDR(.iram);
.stack (NOLOAD) :
{
*(.stack)
stackbegin = .;
. += 0x2000;
stackend = .;
} > DRAM
.bss (NOLOAD) :
{
_edata = .;
*(.bss*)
*(COMMON)
. = ALIGN(0x4);
_end = .;
} > DRAM
.audiobuf (NOLOAD) : .audiobuf (NOLOAD) :
{ {
. = ALIGN(4); . = ALIGN(4);