[binutils-gdb] S12Z: Emit initialized data segment image.
Alan Modra
amodra@sourceware.org
Fri Jul 27 01:59:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b73b52bccfc73172bc472c1e223f54f07a3e858
commit 5b73b52bccfc73172bc472c1e223f54f07a3e858
Author: John Darrington <john@darrington.wattle.id.au>
Date: Tue Jul 24 12:58:40 2018 +0200
S12Z: Emit initialized data segment image.
* scripttempl/elfm9s12z.sc: Emit the data_section at the end of text.
Diff:
---
ld/ChangeLog | 4 ++++
ld/scripttempl/elfm9s12z.sc | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index b380c61..1358f02 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+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>
* testsuite/ld-powerpc/vxworks-relax-2.rd: Update for 2018-07-25
diff --git a/ld/scripttempl/elfm9s12z.sc b/ld/scripttempl/elfm9s12z.sc
index c39d270..a4a8d72 100644
--- a/ld/scripttempl/elfm9s12z.sc
+++ b/ld/scripttempl/elfm9s12z.sc
@@ -387,10 +387,10 @@ SECTIONS
${RELOCATING+${PRE_COMPUTE_DATA_SIZE}}
- /* .install ${RELOCATING-0}:
+ .install ${RELOCATING-0}:
{
- . = _data_image_end;
- } ${RELOCATING+ > ${TEXT_MEMORY}} */
+ . = __data_section_size;
+ } ${RELOCATING+ > ${TEXT_MEMORY}}
/* Relocation for some bss and data sections. */
${RELOCATING-${BSS_DATA_RELOC}}
More information about the Binutils-cvs
mailing list