ppc476 patch area size miscalculation
authorAlan Modra <amodra@gmail.com>
Sat, 30 Aug 2014 00:14:47 +0000 (09:44 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 30 Aug 2014 00:42:44 +0000 (10:12 +0930)
commit6128f9cf2b2c4188145faba45596ce49dd0f08be
treeff192bcc7fe76a155cfbd84e43b8c8fad373790a
parent70cc888ddc8b51e5a2cf030941446f0373681463
ppc476 patch area size miscalculation

ppc476 sections that end exactly on a page boundary need the
workaround applied when a function ends in "bctr", or when pasting
together code from multiple sections.  The space allocated for the
patch area didn't allow for this case, while the code in
relocate_section performing the patches did, leading to an assertion
failure.

* elf32-ppc.c (ppc_elf_relax_section): Fix off by one error.
bfd/ChangeLog
bfd/elf32-ppc.c