aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 15e0cd3..15e9087 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -7391,6 +7391,9 @@ elf_find_function (bfd *abfd,
enum { nothing_seen, symbol_seen, file_after_symbol_seen } state;
const struct elf_backend_data *bed = get_elf_backend_data (abfd);
+ if (symbols == NULL)
+ return FALSE;
+
filename = NULL;
func = NULL;
file = NULL;