From 4eb5ce4c9b39ab131c0ead4f5147e07fec71e394 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Fri, 1 Oct 2010 15:22:07 -0400 Subject: [PATCH] add a memory section for RAM so that the linker will warn when you've made your program too big. --- mc1322x.lds | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mc1322x.lds b/mc1322x.lds index 0be77e467..85cf11df7 100644 --- a/mc1322x.lds +++ b/mc1322x.lds @@ -3,6 +3,12 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) ENTRY(_start) + +MEMORY + { + ram (rwx) : org = 0x00400000, l = 96K + } + SECTIONS {