summaryrefslogtreecommitdiff
path: root/devel/avr-binutils/files/patch-newsections
diff options
context:
space:
mode:
Diffstat (limited to 'devel/avr-binutils/files/patch-newsections')
-rw-r--r--devel/avr-binutils/files/patch-newsections43
1 files changed, 43 insertions, 0 deletions
diff --git a/devel/avr-binutils/files/patch-newsections b/devel/avr-binutils/files/patch-newsections
new file mode 100644
index 000000000000..bfbb691a4a8d
--- /dev/null
+++ b/devel/avr-binutils/files/patch-newsections
@@ -0,0 +1,43 @@
+--- ld/scripttempl/avr.sc.old 2007-09-14 06:32:02.437500000 -0600
++++ ld/scripttempl/avr.sc 2007-09-14 06:50:28.854125000 -0600
+@@ -4,9 +4,12 @@ OUTPUT_ARCH(${ARCH})
+
+ MEMORY
+ {
+- text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH
+- data (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH
+- eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = 64K
++ text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH
++ data (rw!x) : ORIGIN = 0x800060, 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) }