]> git.pld-linux.org Git - packages/crossavr-binutils.git/blob - crossavr-binutils-new-sections.patch
- updated to 2.21
[packages/crossavr-binutils.git] / crossavr-binutils-new-sections.patch
1 diff -ruw ld/scripttempl/avr.sc ld/scripttempl/avr.sc
2 --- ld/scripttempl/avr.sc       2009-10-09 18:42:35.000000000 +0530
3 +++ ld/scripttempl/avr.sc       2010-02-12 20:09:24.070812400 +0530
4 @@ -7,6 +7,9 @@
5    text   (rx)   : ORIGIN = 0, LENGTH = $TEXT_LENGTH
6    data   (rw!x) : ORIGIN = $DATA_ORIGIN, LENGTH = $DATA_LENGTH
7    eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
8 +  fuse      (rw!x) : ORIGIN = 0x820000, LENGTH = 1K
9 +  lock      (rw!x) : ORIGIN = 0x830000, LENGTH = 1K
10 +  signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K
11  }
12  
13  SECTIONS
14 @@ -196,6 +199,24 @@
15      ${RELOCATING+ __eeprom_end = . ; }
16    } ${RELOCATING+ > eeprom}
17  
18 +  .fuse ${RELOCATING-0}:
19 +  {
20 +    KEEP(*(.fuse))
21 +    KEEP(*(.lfuse))
22 +    KEEP(*(.hfuse))
23 +    KEEP(*(.efuse))
24 +  } ${RELOCATING+ > fuse}
25 +
26 +  .lock ${RELOCATING-0}:
27 +  {
28 +    KEEP(*(.lock*))
29 +  } ${RELOCATING+ > lock}
30 +
31 +  .signature ${RELOCATING-0}:
32 +  {
33 +    KEEP(*(.signature*))
34 +  } ${RELOCATING+ > signature}
35 +
36    /* Stabs debugging sections.  */
37    .stab 0 : { *(.stab) }
38    .stabstr 0 : { *(.stabstr) }
This page took 0.065561 seconds and 3 git commands to generate.