]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
S12Z: Emit initialized data segment image.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 24 Jul 2018 10:58:40 +0000 (12:58 +0200)
committerAlan Modra <amodra@gmail.com>
Fri, 27 Jul 2018 01:58:59 +0000 (11:28 +0930)
* scripttempl/elfm9s12z.sc: Emit the data_section at the end of text.

ld/ChangeLog
ld/scripttempl/elfm9s12z.sc

index b380c61496f44035fe64ffcb28e69619b6425025..1358f0201bc197a2d6836466dcad007ea9df99bf 100644 (file)
@@ -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
index c39d2708af8f3c072f538bf68032eb645eaa6aaa..a4a8d729e55824d6513207a605d4d4e3f67a0d3b 100644 (file)
@@ -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}}