aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPip Cet <pipcet@gmail.com>2016-05-10 11:01:47 +0930
committerAlan Modra <amodra@gmail.com>2016-05-10 11:04:55 +0930
commit66a368220cc109070a30ac2bbf24057c8b07a2b0 (patch)
treeea60566d7c0b2023d314de01dc325a4b77db7bdb
parenta932d108b10518994c873b38a363af9f21bc2e87 (diff)
downloadgdb-66a368220cc109070a30ac2bbf24057c8b07a2b0.zip
gdb-66a368220cc109070a30ac2bbf24057c8b07a2b0.tar.gz
gdb-66a368220cc109070a30ac2bbf24057c8b07a2b0.tar.bz2
PR 20059 _bfd_elf_copy_link_hash_symbol_type segfault
PR ld/20059 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define as _bfd_generic_copy_link_hash_symbol_type when using generic hash table.
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elfxx-target.h13
2 files changed, 15 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 29dad01..e8c670b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2016-05-10 Pip Cet <pipcet@gmail.com>
+
+ PR ld/20059
+ * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
+ Define as _bfd_generic_copy_link_hash_symbol_type when using
+ generic hash table.
+
2016-05-09 Nick Clifton <nickc@redhat.com>
PR binutils/20063
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index c1bbadc..0dc4f75 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -250,6 +250,10 @@
#ifndef bfd_elfNN_bfd_link_hash_table_create
#define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create
#endif
+#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
+#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
+ _bfd_elf_copy_link_hash_symbol_type
+#endif
#ifndef bfd_elfNN_bfd_link_add_symbols
#define bfd_elfNN_bfd_link_add_symbols bfd_elf_link_add_symbols
#endif
@@ -266,6 +270,10 @@
#define bfd_elfNN_bfd_link_hash_table_create \
_bfd_generic_link_hash_table_create
#endif
+#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
+#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
+ _bfd_generic_copy_link_hash_symbol_type
+#endif
#ifndef bfd_elfNN_bfd_link_add_symbols
#define bfd_elfNN_bfd_link_add_symbols _bfd_generic_link_add_symbols
#endif
@@ -278,11 +286,6 @@
#define bfd_elfNN_bfd_link_just_syms _bfd_elf_link_just_syms
#endif
-#ifndef bfd_elfNN_bfd_copy_link_hash_symbol_type
-#define bfd_elfNN_bfd_copy_link_hash_symbol_type \
- _bfd_elf_copy_link_hash_symbol_type
-#endif
-
#ifndef bfd_elfNN_bfd_link_split_section
#define bfd_elfNN_bfd_link_split_section _bfd_generic_link_split_section
#endif