aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2016-09-28 11:50:41 +0100
committerNick Clifton <nickc@redhat.com>2016-09-28 11:50:41 +0100
commit9eaff8613893f063400fdae95bc382ab33685e3b (patch)
tree707a22d63ab5811257bfa8b97ab498952d1b2915 /bfd/elfxx-target.h
parentde7fb42b57b132ca65746ca4a9ff17c902d9cc62 (diff)
downloadgdb-9eaff8613893f063400fdae95bc382ab33685e3b.zip
gdb-9eaff8613893f063400fdae95bc382ab33685e3b.tar.gz
gdb-9eaff8613893f063400fdae95bc382ab33685e3b.tar.bz2
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.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 0f6f5c5..ba13012 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -548,15 +548,15 @@
#ifndef elf_backend_emit_relocs
#define elf_backend_emit_relocs _bfd_elf_link_output_relocs
#endif
+#ifndef elf_backend_update_relocs
+#define elf_backend_update_relocs NULL
+#endif
#ifndef elf_backend_count_relocs
#define elf_backend_count_relocs NULL
#endif
#ifndef elf_backend_count_additional_relocs
#define elf_backend_count_additional_relocs NULL
#endif
-#ifndef elf_backend_count_output_relocs
-#define elf_backend_count_output_relocs _bfd_elf_default_count_output_relocs
-#endif
#ifndef elf_backend_sort_relocs_p
#define elf_backend_sort_relocs_p NULL
#endif
@@ -778,9 +778,9 @@ static struct elf_backend_data elfNN_bed =
elf_backend_get_target_dtag,
elf_backend_ignore_undef_symbol,
elf_backend_emit_relocs,
+ elf_backend_update_relocs,
elf_backend_count_relocs,
elf_backend_count_additional_relocs,
- elf_backend_count_output_relocs,
elf_backend_sort_relocs_p,
elf_backend_grok_prstatus,
elf_backend_grok_psinfo,