aboutsummaryrefslogtreecommitdiff
path: root/binutils/nm.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-08-26 23:15:48 +0000
committerAlan Modra <amodra@gmail.com>2002-08-26 23:15:48 +0000
commit68a4c07345e6cf85d8b6fbe0d846028ed48f0dba (patch)
tree3cceca06530f3a03669b68a957c30f08d65fab03 /binutils/nm.c
parent55970da69c7cafed0c307890835bce67a8a41434 (diff)
downloadgdb-68a4c07345e6cf85d8b6fbe0d846028ed48f0dba.zip
gdb-68a4c07345e6cf85d8b6fbe0d846028ed48f0dba.tar.gz
gdb-68a4c07345e6cf85d8b6fbe0d846028ed48f0dba.tar.bz2
Revert last change.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r--binutils/nm.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/binutils/nm.c b/binutils/nm.c
index c3f2729..62bc2b4 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