* nm.c (display_rel_file): Treat bfd_error_no_symbols as
[deliverable/binutils-gdb.git] / binutils / nm.c
index 5c325201f294313f4ebf8108c9e5bdc287cd5b42..9b6648eb71fdeafc9ca162b8810a9d9289bde8ed 100644 (file)
@@ -1010,7 +1010,15 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
 
   symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size);
   if (symcount < 0)
-    bfd_fatal (bfd_get_filename (abfd));
+    {
+      if (dynamic && bfd_get_error () == bfd_error_no_symbols)
+       {
+         non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
+         return;
+       }
+      
+      bfd_fatal (bfd_get_filename (abfd));
+    }
 
   if (symcount == 0)
     {
This page took 0.024888 seconds and 4 git commands to generate.