OSDN Git Service

* elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
authormmitchel <mmitchel>
Thu, 1 Jul 1999 23:20:03 +0000 (23:20 +0000)
committermmitchel <mmitchel>
Thu, 1 Jul 1999 23:20:03 +0000 (23:20 +0000)
commit4f4bfce7617ce17ea3360a9c9ba77ee897fc4f80
tree4f4696fb692e26e88d34157d7d80ce86b528981b
parent8abc81890a9b3a059a325f6dea00e76f966b3038
* 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