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/player.lds | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) (limited to 'firmware/player.lds') diff --git a/firmware/player.lds b/firmware/player.lds index b46621879c..bb20c2bb25 100644 --- a/firmware/player.lds +++ b/firmware/player.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,35 +39,45 @@ 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 .pad 0x0900C800 : { - LONG(0); - } + LONG(0); + } > DRAM + + .iram 0xf000000 : AT ( _end ) + { + _iramstart = .; + *(.icode) + *(.idata) + _iramend = .; + } > IRAM } -- cgit v1.2.3