mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
PR binutils/15106
* elf.c (elf_find_function): Don't cache if symbols change.
This commit is contained in:
parent
dafbc74d2c
commit
1965d5f2d0
@ -1,3 +1,8 @@
|
||||
2013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
|
||||
|
||||
PR binutils/15106
|
||||
* elf.c (elf_find_function): Don't cache if symbols change.
|
||||
|
||||
2013-02-07 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR binutils/14873
|
||||
|
@ -7505,6 +7505,7 @@ elf_find_function (bfd *abfd,
|
||||
const char **functionname_ptr)
|
||||
{
|
||||
static asection *last_section;
|
||||
static asymbol **last_symbols;
|
||||
static asymbol *func;
|
||||
static const char *filename;
|
||||
static bfd_size_type func_size;
|
||||
@ -7513,6 +7514,7 @@ elf_find_function (bfd *abfd,
|
||||
return FALSE;
|
||||
|
||||
if (last_section != section
|
||||
|| last_symbols != symbols
|
||||
|| func == NULL
|
||||
|| offset < func->value
|
||||
|| offset >= func->value + func_size)
|
||||
@ -7538,6 +7540,7 @@ elf_find_function (bfd *abfd,
|
||||
state = nothing_seen;
|
||||
func_size = 0;
|
||||
last_section = section;
|
||||
last_symbols = symbols;
|
||||
|
||||
for (p = symbols; *p != NULL; p++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user