diff options
author | Alan Modra <amodra@gmail.com> | 2002-08-26 10:14:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-08-26 10:14:15 +0000 |
commit | a1df01d1e4a68cdb42464418b3f973871180d72e (patch) | |
tree | e516b1f464b1351ba3259584081b542e3d748528 /binutils/nm.c | |
parent | c8e48751a62a183ae04ea34886cd8c3f544d6e41 (diff) | |
download | gdb-a1df01d1e4a68cdb42464418b3f973871180d72e.zip gdb-a1df01d1e4a68cdb42464418b3f973871180d72e.tar.gz gdb-a1df01d1e4a68cdb42464418b3f973871180d72e.tar.bz2 |
* nm.c (display_rel_file): Don't report "no symbols" as an error.
* objdump.c (slurp_symtab): Likewise.
(slurp_dynamic_symtab): Likewise.
(dump_symbols): Likewise. Do print "no symbols" to stdout.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 62bc2b4..c3f2729 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -955,10 +955,7 @@ display_rel_file (abfd, archive_bfd) if (! dynamic) { if (!(bfd_get_file_flags (abfd) & HAS_SYMS)) - { - non_fatal (_("%s: no symbols"), bfd_get_filename (abfd)); - return; - } + return; } symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size); @@ -966,10 +963,7 @@ display_rel_file (abfd, archive_bfd) bfd_fatal (bfd_get_filename (abfd)); if (symcount == 0) - { - non_fatal (_("%s: no symbols"), bfd_get_filename (abfd)); - return; - } + return; /* Discard the symbols we don't want to print. It's OK to do this in place; we'll free the storage anyway |