Correct VLE 16D and SDAREL relocations
authorAlan Modra <amodra@gmail.com>
Thu, 23 Feb 2017 01:50:42 +0000 (12:20 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 23 Feb 2017 02:03:51 +0000 (12:33 +1030)
commit5499c7c71cc403a1deff90b79ab41d17efc5c4cc
tree741cd69ec800b5e24bcae98532a6aeb50de13150
parentd8260425e6a8ef78cf47324f6f68d7978ac701ba
Correct VLE 16D and SDAREL relocations

PR 20744
bfd/
* elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
16D relocations.
(ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
(ppc_elf_relocate_section): Correct calculation for VLE SDAREL
relocs.
ld/
* testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
each group.
* testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
and sdarel reloc fix.
bfd/ChangeLog
bfd/elf32-ppc.c
ld/ChangeLog
ld/testsuite/ld-powerpc/vle-reloc-2.d
ld/testsuite/ld-powerpc/vle-reloc-2.s