Make powerpc bfd ld reloc overflow vs undefined symbols match gold
authorAlan Modra <amodra@gmail.com>
Tue, 24 Mar 2015 07:07:57 +0000 (17:37 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Mar 2015 07:12:36 +0000 (17:42 +1030)
commit8131c12209700f6e8cf16b09b5196da78a8066a3
tree547c397906468ce0c106e6f85e9dc23eb234a972
parent05f53ed611f0f7442f2b3a12b2829a18db6c2b59
Make powerpc bfd ld reloc overflow vs undefined symbols match gold

* elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to
stubs, even those for undefined weak symbols.  Otherwise, don't
report relocation overflow on branches to undefined strong
symbols.  Fix memory leak.
* elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation
overflow on branches to undefined strong symbols.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c