diff options
Diffstat (limited to 'bfd/elf32-frv.c')
-rw-r--r-- | bfd/elf32-frv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c index ad0779b..9908c01 100644 --- a/bfd/elf32-frv.c +++ b/bfd/elf32-frv.c @@ -826,8 +826,9 @@ struct frvfdpic_elf_link_hash_table /* Get the FRV ELF linker hash table from a link_info structure. */ #define frvfdpic_hash_table(p) \ - (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \ - == FRV_ELF_DATA ? ((struct frvfdpic_elf_link_hash_table *) ((p)->hash)) : NULL) + ((is_elf_hash_table ((p)->hash) \ + && elf_hash_table_id (elf_hash_table (p)) == FRV_ELF_DATA) \ + ? (struct frvfdpic_elf_link_hash_table *) (p)->hash : NULL) #define frvfdpic_got_section(info) \ (frvfdpic_hash_table (info)->elf.sgot) |