mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 04:30:37 -04:00
Completely reorganize the patches for this port. Patches for new devices are now synchronized with the Atmel AVR tools. The main difference is the naming scheme, as FreeBSD patches start with "patch-", while the Atmel AVR Tools patches end up in ".patch".
38 lines
1 KiB
Text
38 lines
1 KiB
Text
diff -ruwN ld/scripttempl/avr.sc ld/scripttempl/avr.sc
|
|
--- ld/scripttempl/avr.sc 2009-10-09 18:42:35.000000000 +0530
|
|
+++ ld/scripttempl/avr.sc 2010-03-11 12:26:00.563046000 +0530
|
|
@@ -7,6 +7,9 @@
|
|
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
|
|
@@ -196,6 +199,24 @@
|
|
${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) }
|