This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Provide the __bssstart and __bsssize symbols needed by the MSP430's crt0.o code.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0d832c8ea736150cb246f8988b2f9f78bf58de5e

commit 0d832c8ea736150cb246f8988b2f9f78bf58de5e
Author: Nick Clifton <nickc@redhat.com>
Date:   Thu May 26 11:43:38 2016 +0100

    Provide the __bssstart and __bsssize symbols needed by the MSP430's crt0.o code.
    
    	PR target/20134
    	* scripttempl/elf32msp430.sc (.bss): Provide __bssstart and
    	__bsssize.
    	* scripttempl/elf32msp430_3.sc (.bss): Likewise.

Diff:
---
 ld/ChangeLog                    | 9 ++++++++-
 ld/scripttempl/elf32msp430.sc   | 4 +++-
 ld/scripttempl/elf32msp430_3.sc | 2 ++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index dabaf55..9812e7c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/scripttempl/elf32msp430.sc b/ld/scripttempl/elf32msp430.sc
index 17bcb36..dda82ff 100644
--- a/ld/scripttempl/elf32msp430.sc
+++ b/ld/scripttempl/elf32msp430.sc
@@ -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)} :
   {
diff --git a/ld/scripttempl/elf32msp430_3.sc b/ld/scripttempl/elf32msp430_3.sc
index 6c4ac15..1e1a68f 100644
--- a/ld/scripttempl/elf32msp430_3.sc
+++ b/ld/scripttempl/elf32msp430_3.sc
@@ -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)} :
   {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]