From 909df0a1391929dd551f96a8f7c97e1b106a7f9f Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 1 Aug 2002 08:12:17 +0000 Subject: No allows code and data in internal RAM git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1497 a1c6a512-1295-4272-9138-f99709370657 --- firmware/app.lds | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'firmware/app.lds') diff --git a/firmware/app.lds b/firmware/app.lds index e052efea32..a514c46937 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -1,30 +1,37 @@ ENTRY(start) OUTPUT_FORMAT(elf32-sh) INPUT(crt0.o) + +MEMORY +{ + DRAM : ORIGIN = 0x09000000, LENGTH = 0x200000 + IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 +} + SECTIONS { - .vectors 0x09000000 : + .vectors : { *(.resetvectors); *(.vectors); . = ALIGN(0x200); *(.init.text) - } + } > DRAM .text : { *(.text) - } + } > DRAM .data : { *(.data) - } + } > DRAM .rodata : { *(.rodata) - } + } > DRAM .bss : { @@ -32,31 +39,40 @@ SECTIONS *(.bss) *(COMMON) _end = .; - } + } > DRAM .stack : { *(.stack) _stackbegin = .; + /* We put the copy of the .iram section here to save space */ + _iramcopy = .; . = 0x2000; _stackend = .; - } + } > DRAM .heap : { _poolstart = .; . = 0x20000; _poolend = .; - } + } > DRAM .mp3buf : { _mp3buf = .; - } + } > DRAM .mp3end 0x09200000 : { _mp3end = .; - } + } > DRAM + .iram 0xf000000 : AT ( _end ) + { + _iramstart = .; + *(.icode) + *(.idata) + _iramend = .; + } > IRAM } -- cgit v1.2.3