From: Senthil Kumar Selvaraj Date: Fri, 22 Nov 2013 12:00:55 +0000 (+0000) Subject: * scripttempl/avr.sc: Set .data section's LMA to next available X-Git-Tag: gdb-7.7-release~400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ed365b417ae675db9bd42c6920de83027edcc0c;p=external%2Fbinutils.git * scripttempl/avr.sc: Set .data section's LMA to next available address in text region. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 768dc47..e98129d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2013-11-22 Senthil Kumar Selvaraj + + * scripttempl/avr.sc: Set .data section's LMA to next available + address in text region. + 2013-11-21 Andrew Pinski * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64linux32.c 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))} {