PR 20059 _bfd_elf_copy_link_hash_symbol_type segfault
authorPip Cet <pipcet@gmail.com>
Tue, 10 May 2016 01:31:47 +0000 (11:01 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 10 May 2016 01:34:55 +0000 (11:04 +0930)
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.

bfd/ChangeLog
bfd/elfxx-target.h

index 29dad0121d336301a53544ea1f13f251a68dcde5..e8c670bc0916db715e4b95943c83eacfdff8169d 100644 (file)
@@ -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
index c1bbadce6ddc39f78da38acce84a4caa49922e8c..0dc4f75aeaef7e30ab012d2253da6a0b7cfbbfff 100644 (file)
 #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
 #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
 #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