From fe57a8c9f51516feb4fe999d2ff079157db42c26 Mon Sep 17 00:00:00 2001
From: John Darrington <john@darrington.wattle.id.au>
Date: Tue, 24 Jul 2018 12:58:41 +0200
Subject: [PATCH] S12Z: Emit uninitialized data in the .bss segment

	* scripttempl/elfm9s12z.sc: Put input sections called .common
	into the .bss segment.
---
 ld/ChangeLog                | 5 +++++
 ld/scripttempl/elfm9s12z.sc | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1358f0201bc..61e2c6d643c 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/ld/scripttempl/elfm9s12z.sc b/ld/scripttempl/elfm9s12z.sc
index a4a8d729e55..cf602b53dc1 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)