1 diff -Naurp ld/scripttempl/avrtiny10.sc ld/scripttempl/avrtiny10.sc
2 --- ld/scripttempl/avrtiny10.sc 2012-04-03 11:50:08.000000000 +0530
3 +++ ld/scripttempl/avrtiny10.sc 2012-04-03 11:52:48.000000000 +0530
4 @@ -6,9 +6,13 @@ MEMORY
6 text (rx) : ORIGIN = $TEXT_ORIGIN, LENGTH = $TEXT_LENGTH
7 data (rw!x) : ORIGIN = $DATA_ORIGIN, LENGTH = $DATA_LENGTH
8 - lock (rw!x) : ORIGIN = 0x3F00, LENGTH = 2
9 - signature (rw!x) : ORIGIN = 0x3FC0, LENGTH = 4
10 -/* REVISIT: fuse(rw!x) : */
12 + /* Provide offsets for config, lock and signature to match
13 + production file format. Ignore offsets in datasheet. */
15 + config(rw!x) : ORIGIN = 0x820000, LENGTH = 2
16 + lock (rw!x) : ORIGIN = 0x830000, LENGTH = 2
17 + signature (rw!x) : ORIGIN = 0x840000, LENGTH = 4
21 @@ -202,6 +206,11 @@ SECTIONS
23 } ${RELOCATING+ > signature}
25 + .config ${RELOCATING-0}:
28 + } ${RELOCATING+ > config}
30 /* Stabs debugging sections. */
31 .stab 0 : { *(.stab) }
32 .stabstr 0 : { *(.stabstr) }