xlc -z relro toc section fixes
authorAlan Modra <amodra@gmail.com>
Mon, 2 Feb 2015 11:18:46 +0000 (21:48 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Feb 2015 11:24:10 +0000 (21:54 +1030)
commit6c2573b7abfc3a504b902e46169cc521b6aa5eb7
tree070a15300ba57dbe7d10160875e049edb4ad7d38
parent0c4bd9d97731e2cdff46efa7e7325e4716641a59
xlc -z relro toc section fixes

Moving .toc out of .got caused us to lose toc sorting and multi-toc
support.

* emultempl/ppc64elf.em (toc_section_name): New var.
(ppc_after_open): Set it.
(ppc_before_allocation): Use it.
(gld${EMULATION_NAME}_after_allocation): Here too.
ld/ChangeLog
ld/emultempl/ppc64elf.em