Set bfd_error to no_symbols if the symbols could not be read.
This commit is contained in:
parent
f598fd5e7a
commit
0ab72ee2fd
|
@ -1,3 +1,8 @@
|
||||||
|
2002-08-22 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
|
||||||
|
symbols are not read.
|
||||||
|
|
||||||
2002-08-22 Alan Modra <amodra@bigpond.net.au>
|
2002-08-22 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-m68hc11.c: Formatting fixes.
|
* elf32-m68hc11.c: Formatting fixes.
|
||||||
|
|
|
@ -806,6 +806,7 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
|
||||||
return symcount;
|
return symcount;
|
||||||
|
|
||||||
error_return:
|
error_return:
|
||||||
|
bfd_set_error (bfd_error_no_symbols);
|
||||||
if (syms != NULL)
|
if (syms != NULL)
|
||||||
free (syms);
|
free (syms);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue