OSDN Git Service

Revert last change.
authoramodra <amodra>
Mon, 26 Aug 2002 23:12:55 +0000 (23:12 +0000)
committeramodra <amodra>
Mon, 26 Aug 2002 23:12:55 +0000 (23:12 +0000)
binutils/ChangeLog
binutils/nm.c

index 8d84465..b196c23 100644 (file)
@@ -1,3 +1,7 @@
+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.
index c3f2729..62bc2b4 100644 (file)
@@ -955,7 +955,10 @@ display_rel_file (abfd, archive_bfd)
   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);
@@ -963,7 +966,10 @@ display_rel_file (abfd, archive_bfd)
     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