From b8ebce0fef2ae09e03774f5e7ad019dde877aa75 Mon Sep 17 00:00:00 2001 From: maralvira Date: Sun, 7 Nov 2010 14:54:05 +0000 Subject: [PATCH] add a memory section for RAM so that the linker will warn when you've made your program too big. --- cpu/mc1322x/mc1322x.lds | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cpu/mc1322x/mc1322x.lds b/cpu/mc1322x/mc1322x.lds index c5311e6fb..85cf11df7 100644 --- a/cpu/mc1322x/mc1322x.lds +++ b/cpu/mc1322x/mc1322x.lds @@ -2,7 +2,13 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) -SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib"); +ENTRY(_start) + +MEMORY + { + ram (rwx) : org = 0x00400000, l = 96K + } + SECTIONS {