+2021-01-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
+       (bfinfdpic_check_relocs): Likewise.
+
 2021-01-06  Alan Modra  <amodra@gmail.com>
 
        * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
 
       else
        {
          h = sym_hashes[r_symndx - symtab_hdr->sh_info];
+         while (h->root.type == bfd_link_hash_indirect
+                || h->root.type == bfd_link_hash_warning)
+           h = (struct elf_link_hash_entry *)h->root.u.i.link;
        }
 
       switch (ELF32_R_TYPE (rel->r_info))
       if (r_symndx < symtab_hdr->sh_info)
        h = NULL;
       else
-       h = sym_hashes[r_symndx - symtab_hdr->sh_info];
+       {
+         h = sym_hashes[r_symndx - symtab_hdr->sh_info];
+         while (h->root.type == bfd_link_hash_indirect
+                || h->root.type == bfd_link_hash_warning)
+           h = (struct elf_link_hash_entry *) h->root.u.i.link;
+       }
 
       switch (ELF32_R_TYPE (rel->r_info))
        {