diff options
Diffstat (limited to 'bfd/elfxx-tilegx.c')
-rw-r--r-- | bfd/elfxx-tilegx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elfxx-tilegx.c b/bfd/elfxx-tilegx.c index 2631a0d..abe344c 100644 --- a/bfd/elfxx-tilegx.c +++ b/bfd/elfxx-tilegx.c @@ -840,8 +840,9 @@ struct tilegx_elf_link_hash_table /* Get the Tile ELF linker hash table from a link_info structure. */ #define tilegx_elf_hash_table(p) \ - (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \ - == TILEGX_ELF_DATA ? ((struct tilegx_elf_link_hash_table *) ((p)->hash)) : NULL) + ((is_elf_hash_table ((p)->hash) \ + && elf_hash_table_id (elf_hash_table (p)) == TILEGX_ELF_DATA) \ + ? (struct tilegx_elf_link_hash_table *) (p)->hash : NULL) #ifdef BFD64 static bfd_vma |