ppc476 workaround for ld -r fixes
authorAlan Modra <amodra@gmail.com>
Mon, 17 Feb 2014 06:21:25 +0000 (16:51 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 17 Feb 2014 06:30:19 +0000 (17:00 +1030)
commit668e22e51bc50b884a8c1872a2371a6b00a08f9d
tree963c5f029488545fe2b2729668369af0ff3226bf
parent98dc0167d6bb0a931800078cb0eb36d403bc9994
ppc476 workaround for ld -r fixes

This fixes the glaring error that the ppc476 workaround wasn't
actually enabled for ld -r, and adjusts relocations to match moved
code.

bfd/
* elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns
patched for ppc476 workaround.  Reapply branch taken/not taken
relocs.
ld/
* emultempl/ppc32elf.em (ppc_after_open_output): Really enable
ppc476 workaround for ld -r.
bfd/ChangeLog
bfd/elf32-ppc.c
ld/ChangeLog
ld/emultempl/ppc32elf.em