aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>2013-11-22 12:00:55 +0000
committerNick Clifton <nickc@redhat.com>2013-11-22 12:00:55 +0000
commit5ed365b417ae675db9bd42c6920de83027edcc0c (patch)
treed09f74abd60c79cb5f7cde5353df25f27d8ca2d5 /ld/scripttempl
parentca092b61dcb002e8eac3f745c84d8d9869262d2a (diff)
downloadgdb-5ed365b417ae675db9bd42c6920de83027edcc0c.zip
gdb-5ed365b417ae675db9bd42c6920de83027edcc0c.tar.gz
gdb-5ed365b417ae675db9bd42c6920de83027edcc0c.tar.bz2
* scripttempl/avr.sc: Set .data section's LMA to next available
address in text region.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/avr.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index bfce5fe..10714e1 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -163,7 +163,7 @@ SECTIONS
${RELOCATING+ _etext = . ; }
} ${RELOCATING+ > text}
- .data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
+ .data ${RELOCATING-0} :
{
${RELOCATING+ PROVIDE (__data_start = .) ; }
/* --gc-sections will delete empty .data. This leads to wrong start
@@ -177,7 +177,7 @@ SECTIONS
${RELOCATING+. = ALIGN(2);}
${RELOCATING+ _edata = . ; }
${RELOCATING+ PROVIDE (__data_end = .) ; }
- } ${RELOCATING+ > data}
+ } ${RELOCATING+ > data ${RELOCATING+AT> text}}
.bss ${RELOCATING-0} :${RELOCATING+ AT (ADDR (.bss))}
{