+2005-12-27 Alan Modra <amodra@bigpond.net.au>
+
+ * elf.c (elf_find_function): Don't ignore section syms.
+ Simplify filename logic.
+
2005-12-27 Alan Modra <amodra@bigpond.net.au>
* elf32-ppc.c (add_stub_sym): Pass info rather than htab.
if (state == symbol_seen)
state = file_after_symbol_seen;
continue;
- case STT_SECTION:
- continue;
case STT_NOTYPE:
case STT_FUNC:
if (bfd_get_section (&q->symbol) == section
{
func = (asymbol *) q;
low_func = q->symbol.value;
- if (file == NULL)
- filename = NULL;
- else if (ELF_ST_BIND (q->internal_elf_sym.st_info) != STB_LOCAL
- && state == file_after_symbol_seen)
- filename = NULL;
- else
+ filename = NULL;
+ if (file != NULL
+ && (ELF_ST_BIND (q->internal_elf_sym.st_info) == STB_LOCAL
+ || state != file_after_symbol_seen))
filename = bfd_asymbol_name (file);
}
break;