From ef844a53d224c8724b237076359b448bd4e360da Mon Sep 17 00:00:00 2001 From: "Eric B. Weddington" Date: Mon, 21 Mar 2011 20:07:42 +0000 Subject: [PATCH] 2011-03-21 Eric B. Weddington * scripttempl/avr.sc: Add fuse, lock, and signature memory regions. --- ld/ChangeLog | 4 ++++ ld/scripttempl/avr.sc | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2441056bbf2..e91439b628c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2011-03-21 Eric B. Weddington + + * scripttempl/avr.sc: Add fuse, lock, and signature memory regions. + 2011-03-14 Richard Sandiford * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Check diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc index 4545b720095..c11de862732 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) } -- 2.30.2