board: mtk: increase RAM sizes in linker script
authorWolfram Sang <wolfram@the-dreams.de>
Mon, 30 May 2011 18:03:17 +0000 (20:03 +0200)
committerHarald Welte <laforge@gnumonks.org>
Mon, 30 May 2011 19:51:58 +0000 (21:51 +0200)
gcc3 (and some gcc4) produce code which does not fit into the
0x5000-sized RAM sections. Extend them to 0x6000 for now, so it will
build correctly again. The created binary (gcc3) has been successfully
tested on my G2.

Signed-off-by: Wolfram Sang <wolfram@the-dreams.de>
src/target/firmware/board/mediatek/ram.lds

index 465c0ba..a2af560 100644 (file)
@@ -11,9 +11,9 @@ ENTRY(_start)
 MEMORY
 {
     /* mtk-loaded binary: our text, initialized data */
-    LRAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00005000
+    LRAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00006000
     /* mtk-loaded binary: our unitialized data, stacks, heap */
-    IRAM (rw) : ORIGIN = 0x40005000, LENGTH = 0x00005000
+    IRAM (rw) : ORIGIN = 0x40006000, LENGTH = 0x00006000
 }
 SECTIONS
 {