openbsd-ports/devel/avr/binutils/patches/patch-ld_scripttempl_avr_sc
ckuethe ebcb40e5e1 Update to the latest AVR gcc, binutils, libc and gdb. Based on the FreeBSD
port, which is also in sync with winavr/avrstudio. Among other things, this
adds support for atmega328... which means new arduino boards should work.
2010-06-27 20:58:10 +00:00

39 lines
1.0 KiB
Plaintext

$OpenBSD: patch-ld_scripttempl_avr_sc,v 1.3 2010/06/27 20:58:10 ckuethe Exp $
--- ld/scripttempl/avr.sc.orig Sat Jun 26 11:23:26 2010
+++ ld/scripttempl/avr.sc Sat Jun 26 11:31:17 2010
@@ -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
@@ -195,6 +198,24 @@ SECTIONS
*(.eeprom*)
${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) }