From 96e7b71eba983e67df275cf8ee0d0a8cca4032c0 Mon Sep 17 00:00:00 2001 From: meri Date: Wed, 21 Nov 2007 06:17:48 +0000 Subject: new linker file with vector table reserved git-svn-id: https://svn.openpcd.org:2342/trunk@343 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/config/atmel-rom.ld | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'openpicc/config') diff --git a/openpicc/config/atmel-rom.ld b/openpicc/config/atmel-rom.ld index 13fc82e..9781d0c 100644 --- a/openpicc/config/atmel-rom.ld +++ b/openpicc/config/atmel-rom.ld @@ -1,7 +1,9 @@ MEMORY { - flash : ORIGIN = 0x00100000, LENGTH = 256K - 1K /* save 1K for environment on top of flash */ - ram : ORIGIN = 0x00200028, LENGTH = 64K-0x28 + boot : ORIGIN = 0x00100000, LENGTH = 0x100 + flash : ORIGIN = 0x00100100, LENGTH = 256K - 0x100 + vectors : ORIGIN = 0x00200000, LENGTH = 0x100 + ram : ORIGIN = 0x00200100, LENGTH = 64K - 0x100 } __stack_end__ = 0x00200000 + 64K - 4; @@ -9,7 +11,10 @@ __stack_end__ = 0x00200000 + 64K - 4; SECTIONS { . = 0; - startup : { *(.startup)} >flash + startup : { + *(.startup) + _startup_end = .; + } >boot prog : { -- cgit v1.2.3