This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch]: avr port: fix bug in .eeprom segment
- To: binutils at sourceware dot cygnus dot com
- Subject: [patch]: avr port: fix bug in .eeprom segment
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Tue, 14 Nov 2000 01:07:12 +0300
Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
* scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
Index: elf32avr.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf32avr.sc,v
retrieving revision 1.3
diff -c -3 -p -r1.3 elf32avr.sc
*** elf32avr.sc 2000/09/02 20:43:22 1.3
--- elf32avr.sc 2000/11/13 22:10:27
*************** MEMORY
*** 6,12 ****
{
text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH
data (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH
! eeprom (rw!x) : ORIGIN = 0, LENGTH = $EEPROM_LENGTH
}
SECTIONS
--- 6,12 ----
{
text (rx) : ORIGIN = 0, LENGTH = $TEXT_LENGTH
data (rw!x) : ORIGIN = 0x800060, LENGTH = $DATA_LENGTH
! eeprom (rw!x) : ORIGIN = 0x810000, LENGTH = $EEPROM_LENGTH
}
SECTIONS
*************** SECTIONS
*** 96,102 ****
} ${RELOCATING+ > data}
.bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
- ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))}
{
${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss)
--- 96,101 ----
*************** SECTIONS
*** 106,111 ****
--- 105,111 ----
} ${RELOCATING+ > data}
.eeprom ${RELOCATING-0}:
+ ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text) + SIZEOF (.data))}
{
*(.eeprom*)
${RELOCATING+ __eeprom_end = . ; }