From: Denis Chertykov Date: Mon, 13 Nov 2000 22:26:38 +0000 (+0000) Subject: * scripttempl/elf32avr.sc: Fix bug in .eeprom segment. X-Git-Tag: gprof-pre-ansify-2004-05-26~7493 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=182188d1b83ffc85c7b188f427dfed055a77ab88;p=pf3gnuchains%2Fpf3gnuchains4x.git * scripttempl/elf32avr.sc: Fix bug in .eeprom segment. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 60909ff8bb..16b02e1dee 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 14 00:59:19 2000 Denis Chertykov + + * scripttempl/elf32avr.sc: Fix bug in .eeprom segment. + 2000-11-09 Philip Blundell * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME diff --git a/ld/scripttempl/elf32avr.sc b/ld/scripttempl/elf32avr.sc index c61d352e22..0673945b85 100644 --- a/ld/scripttempl/elf32avr.sc +++ b/ld/scripttempl/elf32avr.sc @@ -6,7 +6,7 @@ MEMORY { text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH data (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH - eeprom (rw!x) : ORIGIN = 0, LENGTH = $EEPROM_LENGTH + eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = $EEPROM_LENGTH } SECTIONS @@ -96,7 +96,6 @@ SECTIONS } ${RELOCATING+ > data} .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} : - ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))} { ${RELOCATING+ PROVIDE (__bss_start = .) ; } *(.bss) @@ -106,6 +105,7 @@ SECTIONS } ${RELOCATING+ > data} .eeprom ${RELOCATING-0}: + ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))} { *(.eeprom*) ${RELOCATING+ __eeprom_end = . ; }