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] S12Z: Emit uninitialized data in the .bss segment


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

commit fe57a8c9f51516feb4fe999d2ff079157db42c26
Author: John Darrington <john@darrington.wattle.id.au>
Date:   Tue Jul 24 12:58:41 2018 +0200

    S12Z: Emit uninitialized data in the .bss segment
    
    	* scripttempl/elfm9s12z.sc: Put input sections called .common
    	into the .bss segment.

Diff:
---
 ld/ChangeLog                | 5 +++++
 ld/scripttempl/elfm9s12z.sc | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1358f02..61e2c6d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 2018-07-27  John Darrington  <john@darrington.wattle.id.au>
 
+	* scripttempl/elfm9s12z.sc: Put input sections called .common
+	into the .bss segment.
+
+2018-07-27  John Darrington  <john@darrington.wattle.id.au>
+
 	* scripttempl/elfm9s12z.sc: Emit the data_section at the end of text.
 
 2018-07-26  Alan Modra  <amodra@gmail.com>
diff --git a/ld/scripttempl/elfm9s12z.sc b/ld/scripttempl/elfm9s12z.sc
index a4a8d72..cf602b5 100644
--- a/ld/scripttempl/elfm9s12z.sc
+++ b/ld/scripttempl/elfm9s12z.sc
@@ -401,6 +401,7 @@ SECTIONS
     ${RELOCATING+__bss_start = .;}
     ${RELOCATING+*(.softregs)}
     ${RELOCATING+*(.sbss)}
+    ${RELOCATING+*(.common)}
     ${RELOCATING+*(.scommon)}
 
     *(.dynbss)


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