From: amodra Date: Mon, 26 Aug 2002 23:12:55 +0000 (+0000) Subject: Revert last change. X-Git-Tag: pre-no-this~474 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4d9ca807e462569583de50623a7420f84aba6774;p=pf3gnuchains%2Fpf3gnuchains4x.git Revert last change. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8d844655a3..b196c23afe 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2002-08-27 Alan Modra + + * nm.c: Revert last change. + 2002-08-26 Alan Modra * nm.c (display_rel_file): Don't report "no symbols" as an error. diff --git a/binutils/nm.c b/binutils/nm.c index c3f2729b74..62bc2b4619 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -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