2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
authorEric B. Weddington <eric.weddington@atmel.com>
Mon, 21 Mar 2011 20:07:42 +0000 (20:07 +0000)
committerEric B. Weddington <eric.weddington@atmel.com>
Mon, 21 Mar 2011 20:07:42 +0000 (20:07 +0000)
* scripttempl/avr.sc: Add fuse, lock, and signature memory regions.

ld/ChangeLog
ld/scripttempl/avr.sc

index 2441056bbf20ce5a4b51b722bf8d218e5e3eb0ea..e91439b628cc6468caab93349fea69d52ba212ba 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
+
+       * scripttempl/avr.sc: Add fuse, lock, and signature memory regions.
+
 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check
index 4545b7200959eaa5a0155f24e10b71dd37ff5107..c11de8627325f7bf88b3b4592d23384c4698a9fb 100644 (file)
@@ -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) }
This page took 0.028647 seconds and 4 git commands to generate.