PowerPC64 abort due to dynamic relocs on hidden undefweak
authorAlan Modra <amodra@gmail.com>
Tue, 7 Mar 2017 00:34:19 +0000 (11:04 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 7 Mar 2017 02:02:31 +0000 (12:32 +1030)
commitb1b07054c08eea65ba8d1a9f771796d686f337e5
tree745e32833a44ad334bf77202934b1071b66b3d30
parentbb98f85480da563f4f6438abdabb68a69bc746b8
PowerPC64 abort due to dynamic relocs on hidden undefweak

ppc64_elf_relocate_section lacked a check which meant that it emitted
dynamic relocs against a hidden undefweak symbol for which no dynamic
relocs had been allocated.

PR 21224
PR 20519
* elf64-ppc.c (ppc64_elf_relocate_section): Add missing
dyn_relocs check.
bfd/ChangeLog
bfd/elf64-ppc.c