]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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 03:31:06 +0000 (14:01 +1030)
commit55ff522848fef1fc5323060fd042d0988e71d4b9
treed81a548fb676d702d9265b6e96941a7ad41436a3
parentedec15c24f8144ae85c5da7de0cec85cdf8cdd2c
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