* elf64-ppc.c (toc_adjusting_stub_needed): New function.
authorAlan Modra <amodra@gmail.com>
Thu, 19 Jun 2003 11:49:02 +0000 (11:49 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 19 Jun 2003 11:49:02 +0000 (11:49 +0000)
commit9b5ecbd0c60cc7980d7ae7560b38a537c99861d5
tree4359768f5d3a47b5325ca9062b7d586260ad99bc
parent2c58cc864dbd741d997a1d17dc67a8dcd2b597bb
* 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