Use input_bfd in relocate_section
authorAlan Modra <amodra@gmail.com>
Tue, 22 Nov 2016 05:57:12 +0000 (16:27 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 22 Nov 2016 09:49:29 +0000 (20:19 +1030)
commit95f0d0d2338f8eba18d2b3c8cbe15b1d584b885c
treef6139273fba00a776b3aa30ffd5f3aa5badccc27
parentc5acd8159633cfde315b01431099e1ce5b23dcf7
Use input_bfd in relocate_section

It makes just a little more sense to use input_bfd when retrieving
insns for relocation, since the relocations match the endianness of
the input bfd.

* elf32-ppc.c (ppc64_elf_relocate_section): Calculate d_offset for
input_bfd.  Replace occurrences of output_bfd as bfd_get_32 and
bfd_put_32 param with input_bfd.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.  Also
ppc_elf_vle_split16 param.
(ppc_elf_vle_split16): Rename output_bfd param to input_bfd.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c
This page took 0.032006 seconds and 4 git commands to generate.