diff options
Diffstat (limited to 'openpicc/config/atmel-rom.ld')
-rw-r--r-- | openpicc/config/atmel-rom.ld | 11 |
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 : { |