* elf64-ppc.c (toc_adjusting_stub_needed): New function.
commit6cc736092c231c893da08e656a64cc2579ac6048
authorAlan Modra <amodra@bigpond.net.au>
Thu, 19 Jun 2003 11:49:02 +0000 (19 11:49 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Thu, 19 Jun 2003 11:49:02 +0000 (19 11:49 +0000)
treef6ac8b5a254bc3717d451b49dbdfd114e17e40ea
parent5c306fa434969873476d6e714e66b9310f4adb3e
* elf64-ppc.c (toc_adjusting_stub_needed): New function.
(ppc64_elf_next_input_section): Use it here to set has_gp_reloc.
Return error condition.
(ppc64_elf_size_stubs): Restrict toc adjusting stubs to sections
that have has_gp_reloc set.
(struct ppc_link_hash_table): Add stub_count.
(ppc_build_one_stub): Increment it.
(ppc64_elf_link_hash_table_create): zmalloc rather than clearing
individual fields.
* elf64-ppc.h (ppc64_elf_next_input_section): Update prototype.
bfd/ChangeLog
bfd/elf64-ppc.c
bfd/elf64-ppc.h