aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorEric B. Weddington <eric.weddington@atmel.com>2011-03-21 20:07:42 +0000
committerEric B. Weddington <eric.weddington@atmel.com>2011-03-21 20:07:42 +0000
commitef844a53d224c8724b237076359b448bd4e360da (patch)
tree4873009670ac224d6c30796cd43afaf22699d3a1 /ld/scripttempl
parenta0cb7835083a6117cdca437fbea98c93c9539574 (diff)
downloadgdb-ef844a53d224c8724b237076359b448bd4e360da.zip
gdb-ef844a53d224c8724b237076359b448bd4e360da.tar.gz
gdb-ef844a53d224c8724b237076359b448bd4e360da.tar.bz2
2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
* scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/avr.sc21
1 files changed, 21 insertions, 0 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index 4545b72..c11de86 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -7,6 +7,9 @@ MEMORY
text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH
data (rw!x) : ORIGIN = $DATA_ORIGIN, LENGTH = $DATA_LENGTH
eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
+ fuse (rw!x) : ORIGIN = 0x820000, LENGTH = 1K
+ lock (rw!x) : ORIGIN = 0x830000, LENGTH = 1K
+ signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K
}
SECTIONS
@@ -196,6 +199,24 @@ SECTIONS
${RELOCATING+ __eeprom_end = . ; }
} ${RELOCATING+ > eeprom}
+ .fuse ${RELOCATING-0}:
+ {
+ KEEP(*(.fuse))
+ KEEP(*(.lfuse))
+ KEEP(*(.hfuse))
+ KEEP(*(.efuse))
+ } ${RELOCATING+ > fuse}
+
+ .lock ${RELOCATING-0}:
+ {
+ KEEP(*(.lock*))
+ } ${RELOCATING+ > lock}
+
+ .signature ${RELOCATING-0}:
+ {
+ KEEP(*(.signature*))
+ } ${RELOCATING+ > signature}
+
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }