Provide the __bssstart and __bsssize symbols needed by the MSP430's crt0.o code.
authorNick Clifton <nickc@redhat.com>
Thu, 26 May 2016 10:43:38 +0000 (11:43 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 26 May 2016 10:43:38 +0000 (11:43 +0100)
PR target/20134
* scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
__bsssize.
* scripttempl/elf32msp430_3.sc (.bss): Likewise.

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

index dabaf553fc4f4c4686d6e2667f33d4a434468205..9812e7cb46b9612d6d5319234900e683c36e2721 100644 (file)
@@ -1,5 +1,12 @@
+2016-05-26  Nick Clifton  <nickc@redhat.com>
+
+       PR target/20134
+       * scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
+       __bsssize.
+       * scripttempl/elf32msp430_3.sc (.bss): Likewise.
+
 2016-05-25  Maciej W. Rozycki  <macro@imgtec.com>
-    
+
        * testsuite/ld-mips-elf/unaligned-jalx-0.d: New test.
        * testsuite/ld-mips-elf/unaligned-jalx-1.d: New test.
        * testsuite/ld-mips-elf/unaligned-jalx-2.d: New test.
index 17bcb36585aa200291e821ec0320e4cb132e1454..dda82ff2a30909fe460532ff9cbf9cab56fbcc4a 100644 (file)
@@ -274,7 +274,8 @@ SECTIONS
   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
   {
     ${RELOCATING+. = ALIGN(2);}
-    ${RELOCATING+ PROVIDE (__bss_start = .) ; }
+    ${RELOCATING+ PROVIDE (__bss_start = .); }
+    ${RELOCATING+ PROVIDE (__bssstart = .); }
     *(.lower.bss.* .lower.bss)
     ${RELOCATING+. = ALIGN(2);}
     *(.bss)
@@ -282,6 +283,7 @@ SECTIONS
     *(COMMON)
     ${RELOCATING+ PROVIDE (__bss_end = .) ; }
   } ${RELOCATING+ > data}
+  ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); }
 
   .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
   {
index 6c4ac15fbb44babc1d2d221f880b0a2ecb3b2062..1e1a68f16e76e5e8d33dff4cbd6891e77f0e8230 100644 (file)
@@ -154,10 +154,12 @@ SECTIONS
   {
     ${RELOCATING+. = ALIGN(2);}
     ${RELOCATING+ PROVIDE (__bss_start = .) ; }
+    ${RELOCATING+ PROVIDE (__bssstart = .); }
     *(.bss)
     *(COMMON)
     ${RELOCATING+ PROVIDE (__bss_end = .) ; }
   } ${RELOCATING+ > data}
+  ${RELOCATING+ PROVIDE (__bsssize = SIZEOF(.bss)); }
 
   .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
   {