This fixes the ld "Handle no DWARF information" testcase. Which
currently fails on riscv because a local label name is assumed
to be the current function name.
bfd/ChangeLog:
* elfnn-riscv.c (riscv_maybe_function_sym): Also check
_bfd_elf_is_local_label_name.
bfd_vma *code_off)
{
if (sym->flags & BSF_LOCAL
- && riscv_elf_is_mapping_symbols (sym->name))
+ && (riscv_elf_is_mapping_symbols (sym->name)
+ || _bfd_elf_is_local_label_name (sec->owner, sym->name)))
return 0;
return _bfd_elf_maybe_function_sym (sym, sec, code_off);