diff options
author | Nick Clifton <nickc@redhat.com> | 2011-06-16 12:34:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-06-16 12:34:19 +0000 |
commit | a06c7d5acb1feac14de2f4c8c4d28a62f48805d2 (patch) | |
tree | 4f30888205296a942595b7c8d73b6c2f718437cb /bfd/elf.c | |
parent | 2011-06-16 Tristan Gingold <gingold@adacore.com> (diff) | |
download | binutils-gdb-a06c7d5acb1feac14de2f4c8c4d28a62f48805d2.tar.gz binutils-gdb-a06c7d5acb1feac14de2f4c8c4d28a62f48805d2.tar.bz2 binutils-gdb-a06c7d5acb1feac14de2f4c8c4d28a62f48805d2.zip |
* elf.c (elf_find_function): Fail if not provided with a symbol
table.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |