* elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
authorAlan Modra <amodra@gmail.com>
Wed, 19 Feb 2003 11:26:50 +0000 (11:26 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Feb 2003 11:26:50 +0000 (11:26 +0000)
commitee05f2fe2fd1c9ea12fe193ac9331dd7e6c4221c
treec0576adae40270bcce80ad93af49e478ab106492
parentb1ac4c66ea21452293ef225d5e40d20a27b608a9
* elf32-ppc.c (struct ppc_elf_dyn_relocs): Add pc_count field.
(ppc_elf_copy_indirect_symbol): Copy pc_count field.
(ELIMINATE_COPY_RELOCS): Define.
(ppc_elf_adjust_dynamic_symbol): Convert copy relocs to dynamic.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Pass SHARED instead of INFO.
(MUST_BE_DYN_RELOC): Define.
(allocate_dynrelocs): Adjust WILL_CALL_FINISH_DYNAMIC_SYMBOL uses,
and optimize.  Trim dyn_relocs.
(ppc_elf_check_relocs): Don't generate dyn_relocs when we know they'll
not be used.  Do generate dyn_relocs for copy reloc avoidance.  Keep
track of pc_rel dyn relocs.
(ppc_elf_relocate_section): Remove "will_become_local".  Adjust
WILL_CALL_FINISH_DYNAMIC_SYMBOL use.  Trim dyn relocs as per
allocate_dynrelocs.  Don't recalculate "sec".
bfd/ChangeLog
bfd/elf32-ppc.c