aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorDenis Chertykov <denisc@overta.ru>2000-11-13 22:26:38 +0000
committerDenis Chertykov <denisc@overta.ru>2000-11-13 22:26:38 +0000
commit208d5cd0adbc0c273f15f51bb24ccefbce999f46 (patch)
tree575d17cc71620c438ca804cbc851781a2b794a8f /ld/scripttempl
parent747e13a0ce23b0dccc5c98ba2cc7c6111c9f6ecf (diff)
downloadgdb-208d5cd0adbc0c273f15f51bb24ccefbce999f46.zip
gdb-208d5cd0adbc0c273f15f51bb24ccefbce999f46.tar.gz
gdb-208d5cd0adbc0c273f15f51bb24ccefbce999f46.tar.bz2
* scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf32avr.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/elf32avr.sc b/ld/scripttempl/elf32avr.sc
index c61d352..0673945 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 = . ; }