aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-10-05 04:12:04 +0000
committerAlan Modra <amodra@gmail.com>2008-10-05 04:12:04 +0000
commitf265bc0660dd082e836fbd4416ddedce61b016d2 (patch)
treee6a7893eeea3b5690bbefa31f90188d328361441 /ld/scripttempl
parent44b8c39ae9ab4c12c3b998b6e2713a96beb55df4 (diff)
downloadfsf-binutils-gdb-f265bc0660dd082e836fbd4416ddedce61b016d2.zip
fsf-binutils-gdb-f265bc0660dd082e836fbd4416ddedce61b016d2.tar.gz
fsf-binutils-gdb-f265bc0660dd082e836fbd4416ddedce61b016d2.tar.bz2
PR 6943
* scripttempl/avr.sc (.bss): Set lma when relocating. (.bss, .noinit): No need to set vma when relocating. (.text, .bss, ,noinit): Set vma to zero when not relocating.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/avr.sc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index 7368caf..23b3046 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -72,7 +72,7 @@ SECTIONS
.rela.plt ${RELOCATING-0} : { *(.rela.plt) }
/* Internal text space or external memory. */
- .text :
+ .text ${RELOCATING-0} :
{
*(.vectors)
KEEP(*(.vectors))
@@ -168,7 +168,7 @@ SECTIONS
${RELOCATING+ PROVIDE (__data_end = .) ; }
} ${RELOCATING+ > data}
- .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
+ .bss ${RELOCATING-0} :${RELOCATING+ AT (ADDR (.bss))}
{
${RELOCATING+ PROVIDE (__bss_start = .) ; }
*(.bss)
@@ -181,7 +181,7 @@ SECTIONS
${RELOCATING+ __data_load_end = __data_load_start + SIZEOF(.data); }
/* Global data not cleared after reset. */
- .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
+ .noinit ${RELOCATING-0}:
{
${RELOCATING+ PROVIDE (__noinit_start = .) ; }
*(.noinit*)