S12Z: Emit initialized data segment image.

* scripttempl/elfm9s12z.sc: Emit the data_section at the end of text.
This commit is contained in:
John Darrington
2018-07-24 12:58:40 +02:00
committed by Alan Modra
parent 2bb9bbe2e8
commit 5b73b52bcc
2 changed files with 7 additions and 3 deletions

View 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> 2018-07-26 Alan Modra <amodra@gmail.com>
* testsuite/ld-powerpc/vxworks-relax-2.rd: Update for 2018-07-25 * testsuite/ld-powerpc/vxworks-relax-2.rd: Update for 2018-07-25

View File

@ -387,10 +387,10 @@ SECTIONS
${RELOCATING+${PRE_COMPUTE_DATA_SIZE}} ${RELOCATING+${PRE_COMPUTE_DATA_SIZE}}
/* .install ${RELOCATING-0}: .install ${RELOCATING-0}:
{ {
. = _data_image_end; . = __data_section_size;
} ${RELOCATING+ > ${TEXT_MEMORY}} */ } ${RELOCATING+ > ${TEXT_MEMORY}}
/* Relocation for some bss and data sections. */ /* Relocation for some bss and data sections. */
${RELOCATING-${BSS_DATA_RELOC}} ${RELOCATING-${BSS_DATA_RELOC}}