diff options
Diffstat (limited to 'bfd/elf32-or1k.c')
-rw-r--r-- | bfd/elf32-or1k.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-or1k.c b/bfd/elf32-or1k.c index ef78187..38406ed 100644 --- a/bfd/elf32-or1k.c +++ b/bfd/elf32-or1k.c @@ -921,8 +921,9 @@ struct elf_or1k_link_hash_table /* Get the ELF linker hash table from a link_info structure. */ #define or1k_elf_hash_table(p) \ - (elf_hash_table_id ((struct elf_link_hash_table *) ((p)->hash)) \ - == OR1K_ELF_DATA ? ((struct elf_or1k_link_hash_table *) ((p)->hash)) : NULL) + ((is_elf_hash_table ((p)->hash) \ + && elf_hash_table_id (elf_hash_table (p)) == OR1K_ELF_DATA) \ + ? (struct elf_or1k_link_hash_table *) (p)->hash : NULL) static bfd_boolean elf_or1k_mkobject (bfd *abfd) |