aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32avr.sc
diff options
context:
space:
mode:
authorDenis Chertykov <denisc@overta.ru>2000-05-27 15:36:58 +0000
committerDenis Chertykov <denisc@overta.ru>2000-05-27 15:36:58 +0000
commit2f0b56c07dc063037f82a003c2146af0afe9b378 (patch)
tree708869b7d4f811582131e1339e8fe73bc700f69f /ld/scripttempl/elf32avr.sc
parentad4d6ccf5c4bff92a91f7830ea8503ad9a62d5fb (diff)
downloadfsf-binutils-gdb-2f0b56c07dc063037f82a003c2146af0afe9b378.zip
fsf-binutils-gdb-2f0b56c07dc063037f82a003c2146af0afe9b378.tar.gz
fsf-binutils-gdb-2f0b56c07dc063037f82a003c2146af0afe9b378.tar.bz2
* emulparams/avr1200.sh (STACK): Define as 0.
* emulparams/avr23xx.sh (STACK): Define as last internal SRAM address. * emulparams/avr4433.sh (STACK): Likewise. * emulparams/avr44x4.sh (STACK): Likewise. * emulparams/avr85xx.sh (STACK): Likewise. * emulparams/avrmega103.sh (STACK): Likewise. * emulparams/avrmega161.sh (STACK): Likewise. * emulparams/avrmega603.sh (STACK): Likewise. * scripttempl/elf32avr.sc (__data_start): Define for gcrt1. (__stack): Define from ${STACK} for main().
Diffstat (limited to 'ld/scripttempl/elf32avr.sc')
-rw-r--r--ld/scripttempl/elf32avr.sc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/scripttempl/elf32avr.sc b/ld/scripttempl/elf32avr.sc
index 51b6512..36e99da 100644
--- a/ld/scripttempl/elf32avr.sc
+++ b/ld/scripttempl/elf32avr.sc
@@ -88,6 +88,7 @@ SECTIONS
.data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
{
+ ${RELOCATING+ PROVIDE (__data_start = .) ; }
*(.data)
*(.gnu.linkonce.d*)
${RELOCATING+. = ALIGN(2);}
@@ -144,6 +145,7 @@ SECTIONS
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
+ PROVIDE (__stack = ${STACK}) ;
}
EOF