[PATCH 2/2] board: mtk: increase RAM sizes in linker script

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Wolfram Sang wolfram at the-dreams.de
Mon May 30 18:03:17 UTC 2011


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 at the-dreams.de>
---

 src/target/firmware/board/mediatek/ram.lds |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/target/firmware/board/mediatek/ram.lds b/src/target/firmware/board/mediatek/ram.lds
index 465c0ba..a2af560 100644
--- a/src/target/firmware/board/mediatek/ram.lds
+++ b/src/target/firmware/board/mediatek/ram.lds
@@ -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
 {
-- 
1.7.2.5





More information about the baseband-devel mailing list