More PowerPC64 ELFv2 --just-symbols fixes
authorAlan Modra <amodra@gmail.com>
Tue, 3 Dec 2013 07:18:31 +0000 (17:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 3 Dec 2013 07:32:44 +0000 (18:02 +1030)
commit00f412ee52ff042dd349118443ef289175669b7d
treea155f8e280ecd281baa74beea8009a3676b9ab50
parentcaf26be91a584ef141ac5d3cb31007731af8b8e3
More PowerPC64 ELFv2 --just-symbols fixes

I don't know what I was thinking here to omit the save of r2.
Possibly I was looking at -msave-toc-indirect code at the time, where
r2 is saved in the function prologue.

* elf64-ppc.c (ppc_build_one_stub <ppc_stub_plt_branch_r2off>):
Don't omit saving of r2 for ELFv2.  Don't addi 2,2,0.
(ppc_size_one_stub <ppc_stub_plt_branch_r2off>): Adjust to suit.
bfd/ChangeLog
bfd/elf64-ppc.c