* elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
authorMark Mitchell <mark@codesourcery.com>
Thu, 1 Jul 1999 23:20:08 +0000 (23:20 +0000)
committerMark Mitchell <mark@codesourcery.com>
Thu, 1 Jul 1999 23:20:08 +0000 (23:20 +0000)
commit23bc299bd87439c2bc1c2a7969b427b06831bfed
tree833448563442d4678dfc243fd94ac2a4b9567aa6
parentb1c5e0ee59631e37ca448958be4d3aa8dc34aec1
* elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
fields.
(_bfd_elf_init_reloc_shdr): New function.
* elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
bfd_alloc followed by memset.
(_bfd_elf_init_reloc_shdr): New function, split out from ...
(elf_fake_sections): Here.
(assign_section_numbers): Assign section numbers for the second
relocation section, if required.
* elflink.h (elf_link_output_relocs): New function.
(elf_link_size_reloc_section): Likewise.
(elf_bfd_final_link): Use elf_link_size_reloc_section.
(elf_link_input_bfd): Use elf_link_output_relocs.
* elf32-mips.c (_bfd_mips_elf_fake_sections): Use
_bfd_elf_init_reloc_shdr to initialize rel_hdr2.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elf32-mips.c
bfd/elflink.h