This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: fix a multi-toc related ppc64 segfault
On Fri, Jun 20, Alan Modra wrote:
> We build htab->stub_group, an array indexed by section id, before any
> stub sections have been added. Consequently, if a symbol gets defined
> in a stub section as can happen in ppc_build_one_stub for
> ppc_stub_plt_call, its section id will be too big for the array.
>
> * elf64-ppc.c (struct ppc_link_hash_table): Add top_id.
> (ppc64_elf_setup_section_lists): Set it.
> (ppc64_elf_relocate_section): Check sym section id against top_id.
> (ppc_build_one_stub): Comment on top_id.
Yes, that fixed the segfault. Thanks.
Gruss Olaf
--
USB is for mice, FireWire is for men!