From 253b76661304b1e271cb2b9655c57e1a36ac1ea0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 7 Feb 2013 04:20:31 +0000 Subject: PR binutils/15106 * elf.c (elf_find_function): Don't cache if symbols change. --- bfd/elf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bfd/elf.c') diff --git a/bfd/elf.c b/bfd/elf.c index 7ab3683dc7a..9d6ff318924 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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++) { -- cgit v1.2.1