Fix powerpc64 -r --save-restore-funcs
authorAlan Modra <amodra@gmail.com>
Fri, 26 Feb 2016 12:30:33 +0000 (23:00 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 26 Feb 2016 12:33:23 +0000 (23:03 +1030)
commitb32547cd11bec3baf53e0dedf3c733cd3e0839f6
treea860c8023616b7cb4f509453f5c850bab0329ec5
parentec6944f206b5503c3abfbe36008addc2761d6cd5
Fix powerpc64 -r --save-restore-funcs

* elf64-ppc.c (create_linkage_sections): Create sfpr when
save_restore_funcs, rest of sections when not relocatable.
(ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
(sfpr_define): Define all symbols on emitted code.
(ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
when relocatable.  Move sfpr_define loop earlier.
bfd/ChangeLog
bfd/elf64-ppc.c