mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
* elf.c (elf_find_function): Don't ignore section syms.
Simplify filename logic.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-12-27 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-ppc.c (add_stub_sym): Pass info rather than htab.
|
* elf32-ppc.c (add_stub_sym): Pass info rather than htab.
|
||||||
|
10
bfd/elf.c
10
bfd/elf.c
@ -6686,8 +6686,6 @@ elf_find_function (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
if (state == symbol_seen)
|
if (state == symbol_seen)
|
||||||
state = file_after_symbol_seen;
|
state = file_after_symbol_seen;
|
||||||
continue;
|
continue;
|
||||||
case STT_SECTION:
|
|
||||||
continue;
|
|
||||||
case STT_NOTYPE:
|
case STT_NOTYPE:
|
||||||
case STT_FUNC:
|
case STT_FUNC:
|
||||||
if (bfd_get_section (&q->symbol) == section
|
if (bfd_get_section (&q->symbol) == section
|
||||||
@ -6696,12 +6694,10 @@ elf_find_function (bfd *abfd ATTRIBUTE_UNUSED,
|
|||||||
{
|
{
|
||||||
func = (asymbol *) q;
|
func = (asymbol *) q;
|
||||||
low_func = q->symbol.value;
|
low_func = q->symbol.value;
|
||||||
if (file == NULL)
|
|
||||||
filename = NULL;
|
filename = NULL;
|
||||||
else if (ELF_ST_BIND (q->internal_elf_sym.st_info) != STB_LOCAL
|
if (file != NULL
|
||||||
&& state == file_after_symbol_seen)
|
&& (ELF_ST_BIND (q->internal_elf_sym.st_info) == STB_LOCAL
|
||||||
filename = NULL;
|
|| state != file_after_symbol_seen))
|
||||||
else
|
|
||||||
filename = bfd_asymbol_name (file);
|
filename = bfd_asymbol_name (file);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user