PR 22067
* elf32-i386.c (elf_i386_hash_table): Check is_elf_hash_table first.
* elf64-x86-64.c (elf_x86_64_hash_table): Likewise.
+2017-09-04 Alan Modra <amodra@gmail.com>
+
+ PR 22067
+ * elf32-i386.c (elf_i386_hash_table): Check is_elf_hash_table first.
+ * elf64-x86-64.c (elf_x86_64_hash_table): Likewise.
+
2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22064
/* Get the i386 ELF linker hash table from a link_info structure. */
#define elf_i386_hash_table(p) \
- (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \
+ (is_elf_hash_table ((p)->hash) \
+ && elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \
== I386_ELF_DATA ? ((struct elf_i386_link_hash_table *) ((p)->hash)) : NULL)
#define elf_i386_compute_jump_table_size(htab) \
/* Get the x86-64 ELF linker hash table from a link_info structure. */
#define elf_x86_64_hash_table(p) \
- (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \
+ (is_elf_hash_table ((p)->hash) \
+ && elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \
== X86_64_ELF_DATA ? ((struct elf_x86_64_link_hash_table *) ((p)->hash)) : NULL)
#define elf_x86_64_compute_jump_table_size(htab) \