From: Nick Clifton Date: Thu, 16 Jun 2011 12:34:19 +0000 (+0000) Subject: * elf.c (elf_find_function): Fail if not provided with a symbol X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a06c7d5acb1feac14de2f4c8c4d28a62f48805d2;p=binutils-gdb.git * elf.c (elf_find_function): Fail if not provided with a symbol table. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2489eda2de9..fd2c5d89fca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-06-16 Nick Clifton + + * elf.c (elf_find_function): Fail if not provided with a symbol + table. + 2011-06-15 Ulrich Weigand * elf-bfd.h (elfcore_write_arm_vfp): Add prototype. diff --git a/bfd/elf.c b/bfd/elf.c index 15e0cd34f69..15e9087c801 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;