Fix seg-fault in the linker introduced by the previous delta.
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Wed, 28 Sep 2016 10:50:41 +0000 (11:50 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 28 Sep 2016 10:50:41 +0000 (11:50 +0100)
commit9eaff8613893f063400fdae95bc382ab33685e3b
tree707a22d63ab5811257bfa8b97ab498952d1b2915
parentde7fb42b57b132ca65746ca4a9ff17c902d9cc62
Fix seg-fault in the linker introduced by the previous delta.

PR ld/20636
* elf-bfd.h (struct elf_backend_data): Delete
elf_backend_count_output_relocs callback and add
elf_backend_update_relocs.
* elf32-arm.c (elf32_arm_count_output_relocs): Deleted.
(emit_relocs): Deleted.
(elf32_arm_emit_relocs): Deleted.
(elf_backend_emit_relocs): Updated not to use the old functions.
(elf32_arm_update_relocs): New function.
(elf_backend_update_relocs): New define.
* elflink.c (bfd_elf_final_link): Add additional_reloc_count to the
relocation count. Call elf_backend_emit_relocs.
(_bfd_elf_size_reloc_section): Do not call
elf_backend_count_output_relocs.
* elfxx-target.h (elf_backend_count_output_relocs): Deleted.
(elf_backend_update_relocs): New define.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf32-arm.c
bfd/elflink.c
bfd/elfxx-target.h