+2002-08-27 Alan Modra <amodra@bigpond.net.au>
+
+ * nm.c: Revert last change.
+
2002-08-26 Alan Modra <amodra@bigpond.net.au>
* nm.c (display_rel_file): Don't report "no symbols" as an error.
if (! dynamic)
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
- return;
+ {
+ non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
+ return;
+ }
}
symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size);
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
- return;
+ {
+ non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
+ return;
+ }
/* Discard the symbols we don't want to print.
It's OK to do this in place; we'll free the storage anyway