* 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.
This commit is contained in:
Alan Modra
2003-06-19 11:49:02 +00:00
parent 2c58cc864d
commit 9b5ecbd0c6
3 changed files with 134 additions and 83 deletions

View File

@ -33,7 +33,7 @@ void ppc64_elf_next_toc_section
PARAMS ((struct bfd_link_info *, asection *));
void ppc64_elf_reinit_toc
PARAMS ((bfd *, struct bfd_link_info *));
void ppc64_elf_next_input_section
bfd_boolean ppc64_elf_next_input_section
PARAMS ((struct bfd_link_info *, asection *));
bfd_boolean ppc64_elf_size_stubs
PARAMS ((bfd *, bfd *, struct bfd_link_info *, bfd_signed_vma,