]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* scripttempl/elf32msp430.sc: Add placement of .data.* sections.
authorNick Clifton <nickc@redhat.com>
Wed, 27 Feb 2013 11:15:39 +0000 (11:15 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 27 Feb 2013 11:15:39 +0000 (11:15 +0000)
Add alignment of .bss section.
* scripttempl/elf32msp430_3.sc: Likewise.

ld/ChangeLog
ld/scripttempl/elf32msp430.sc
ld/scripttempl/elf32msp430_3.sc

index b9d65e2d3fc90ebb00e597fa1ea44c0688f48e78..8b15d2a63beeebf1ab2bc832f3b516f8c36c50c0 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-27  Nick Clifton  <nickc@redhat.com>
+
+       * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
+       Add alignment of .bss section.
+       * scripttempl/elf32msp430_3.sc: Likewise.
+
 2013-02-26  Nick Clifton  <nickc@redhat.com>
 
        PR ld/15188
index beabd89a2b6cf0776dac73e75d2c7d1a9fd2ea2f..69c22ba65721b4e3412fb27952915473ad860448 100644 (file)
@@ -144,7 +144,7 @@ SECTIONS
     ${RELOCATING+ PROVIDE (__data_start = .) ; }
     ${RELOCATING+. = ALIGN(2);}
     *(.data)
-    ${RELOCATING+. = ALIGN(2);}
+    *(.data.*)
     *(.gnu.linkonce.d*)
     ${RELOCATING+. = ALIGN(2);}
     ${RELOCATING+ _edata = . ; }
@@ -177,6 +177,7 @@ SECTIONS
 
   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
   {
+    ${RELOCATING+. = ALIGN(2);}
     ${RELOCATING+ PROVIDE (__bss_start = .) ; }
     *(.bss)
     *(COMMON)
index 0ddcf0f4914a99e40eea68b51661564117d07b76..4e2152f5ecb247f3e3549fde630fdf3e79f89827 100644 (file)
@@ -118,7 +118,9 @@ SECTIONS
   .data ${RELOCATING-0} : ${RELOCATING+AT (ADDR (.text) + SIZEOF (.text))}
   {  
     ${RELOCATING+ PROVIDE (__data_start = .) ; }
+    ${RELOCATING+. = ALIGN(2);}
     *(.data)
+    *(.data.*)
     *(.gnu.linkonce.d*)
     ${RELOCATING+. = ALIGN(2);}
     ${RELOCATING+ _edata = . ; }
@@ -126,6 +128,7 @@ SECTIONS
   
   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
   {
+    ${RELOCATING+. = ALIGN(2);}
     ${RELOCATING+ PROVIDE (__bss_start = .) ; }
     *(.bss)
     *(COMMON)