S/390: Use proper read-only data section for literals.
authorMarcin Koƛcielnicki <koriakin@0x04.net>
Thu, 21 Jan 2016 09:45:42 +0000 (09:45 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Thu, 21 Jan 2016 09:45:42 +0000 (09:45 +0000)
commitb929b47014eb64cfc5d9ed3539fc7ef80134211e
tree6b9c1341b2c5e54f0b3e8345b66f08df1547092e
parentfac40b023f3be292aa251f215e5678690b79e31b
S/390: Use proper read-only data section for literals.

Previously, .rodata was hardcoded.  For C++ vague linkage functions,
this resulted in needlessly duplicated literals.  With the new split
stack support, this resulted in link errors, due to .rodata containing
relocations to the discarded text sections.

gcc/ChangeLog:

* config/s390/s390.md (pool_section_start): Use switch_to_section
to select proper read-only data section instead of hardcoding .rodata.
(pool_section_end): Use switch_to_section to match the above.

From-SVN: r232667
gcc/ChangeLog
gcc/config/s390/s390.md