]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR24355, segmentation fault in function called from ppc_finish_symbols binutils-2_30-branch
authorAlan Modra <amodra@gmail.com>
Mon, 18 Mar 2019 13:02:22 +0000 (23:32 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 18 Mar 2019 13:07:21 +0000 (23:37 +1030)
commit1a4839f89446137089f2b45e17ddb28793262629
tree2c288af291fc3f91039831f841181f029d58a13e
parentc6f021093dbd26b4d8e761e9a19af817e9f2561f
PR24355, segmentation fault in function called from ppc_finish_symbols

Backport to 2.30, where the problem might be triggered by gc-sections
rather than inline PLT optimization as in the PR.

PR 24355
* elf32-ppc.c (ppc_elf_relocate_section): Don't call write_glink_stub
for local iplt syms with ent->plt.offset == -1.  Remove ineffective
attempt at writing glink stubs only once.  Correct plt.offset mask.
bfd/ChangeLog
bfd/elf32-ppc.c