]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - 502-binutils-add-config-section-tiny.patch
- synchronized patches with official AVR toolchain 3.4.1.830
[packages/crossavr-binutils.git] / 502-binutils-add-config-section-tiny.patch
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
5  {
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) : */
11 +
12 +  /* Provide offsets for config, lock and signature to match
13 +     production file format. Ignore offsets in datasheet.  */
14 +
15 +  config(rw!x)     : ORIGIN = 0x820000, LENGTH = 2
16 +  lock      (rw!x) : ORIGIN = 0x830000, LENGTH = 2
17 +  signature (rw!x) : ORIGIN = 0x840000, LENGTH = 4
18  }
19  
20  SECTIONS
21 @@ -202,6 +206,11 @@ SECTIONS
22      KEEP(*(.signature*))
23    } ${RELOCATING+ > signature}
24  
25 +  .config ${RELOCATING-0}:
26 +  {
27 +    KEEP(*(.config*))
28 +  } ${RELOCATING+ > config}
29 +
30    /* Stabs debugging sections.  */
31    .stab 0 : { *(.stab) }
32    .stabstr 0 : { *(.stabstr) }
This page took 0.126436 seconds and 3 git commands to generate.