* scripttempl/avr.sc: Set .data section's LMA to next available
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Fri, 22 Nov 2013 12:00:55 +0000 (12:00 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 22 Nov 2013 12:00:55 +0000 (12:00 +0000)
address in text region.

ld/ChangeLog
ld/scripttempl/avr.sc

index 768dc473edffc1007e4322875a2adab01d508373..e98129dc9eb5527908607148f4d6cab93f40838f 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * scripttempl/avr.sc: Set .data section's LMA to next available
+       address in text region.
+
 2013-11-21  Andrew Pinski  <apinski@cavium.com>
 
        * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64linux32.c
index bfce5fe0f68babecf33c4788e3a4ffc245ec2063..10714e1d73ff1a54de0f0cad86abd02f5e68e19c 100644 (file)
@@ -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))}
   {
This page took 0.025998 seconds and 4 git commands to generate.