]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* nm.c (display_rel_file): Treat bfd_error_no_symbols as
authorNick Clifton <nickc@redhat.com>
Thu, 31 Oct 2013 11:30:08 +0000 (11:30 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 31 Oct 2013 11:30:08 +0000 (11:30 +0000)
non-fatal.

binutils/ChangeLog
binutils/nm.c

index 0e763d8d75b7c2f48e0ff00513d8a6fcf455acf5..a8ddd22f79b1284e8bed6fab2e2495c1eac3be9f 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-31  Nick Clifton  <nickc@redhat.com>
+
+       * nm.c (display_rel_file): Treat bfd_error_no_symbols as
+       non-fatal.
+
 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * dwarf.c (display_debug_frames): Pass offset_size to
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)
     {