summaryrefslogtreecommitdiff
path: root/openpicc/config
diff options
context:
space:
mode:
authormeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 06:17:48 +0000
committermeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 06:17:48 +0000
commit96e7b71eba983e67df275cf8ee0d0a8cca4032c0 (patch)
tree00b545cc53c3ef77479bd3d3c54540e658362ae7 /openpicc/config
parent0908ad080506141f79b4528e93c5216961ee2017 (diff)
new linker file with vector table reserved
git-svn-id: https://svn.openpcd.org:2342/trunk@343 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/config')
-rw-r--r--openpicc/config/atmel-rom.ld11
1 files changed, 8 insertions, 3 deletions
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 :
{
personal git repositories of Harald Welte. Your mileage may vary