* objdump.c (slurp_symtab): Likewise.
(slurp_dynamic_symtab): Likewise.
(dump_symbols): Likewise. Do print "no symbols" to stdout.
+2002-08-26 Alan Modra <amodra@bigpond.net.au>
+
+ * 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.
+
2002-08-24 Geoffrey Keating <geoffk@redhat.com>
* MAINTAINERS: Change my mailing address.
2002-08-24 Geoffrey Keating <geoffk@redhat.com>
* MAINTAINERS: Change my mailing address.
if (! dynamic)
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
if (! dynamic)
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
- {
- non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
- return;
- }
}
symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size);
}
symcount = bfd_read_minisymbols (abfd, dynamic, &minisyms, &size);
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
bfd_fatal (bfd_get_filename (abfd));
if (symcount == 0)
- {
- 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
/* Discard the symbols we don't want to print.
It's OK to do this in place; we'll free the storage anyway
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
if (!(bfd_get_file_flags (abfd) & HAS_SYMS))
{
- non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
symcount = 0;
return NULL;
}
symcount = 0;
return NULL;
}
symcount = bfd_canonicalize_symtab (abfd, sy);
if (symcount < 0)
bfd_fatal (bfd_get_filename (abfd));
symcount = bfd_canonicalize_symtab (abfd, sy);
if (symcount < 0)
bfd_fatal (bfd_get_filename (abfd));
- if (symcount == 0)
- non_fatal (_("%s: no symbols"), bfd_get_filename (abfd));
dynsymcount = bfd_canonicalize_dynamic_symtab (abfd, sy);
if (dynsymcount < 0)
bfd_fatal (bfd_get_filename (abfd));
dynsymcount = bfd_canonicalize_dynamic_symtab (abfd, sy);
if (dynsymcount < 0)
bfd_fatal (bfd_get_filename (abfd));
- if (dynsymcount == 0)
- non_fatal (_("%s: No dynamic symbols"), bfd_get_filename (abfd));
{
current = dynsyms;
max = dynsymcount;
{
current = dynsyms;
max = dynsymcount;
- if (max == 0)
- return;
printf ("DYNAMIC SYMBOL TABLE:\n");
}
else
{
current = syms;
max = symcount;
printf ("DYNAMIC SYMBOL TABLE:\n");
}
else
{
current = syms;
max = symcount;
- if (max == 0)
- return;
printf ("SYMBOL TABLE:\n");
}
printf ("SYMBOL TABLE:\n");
}
+ if (max == 0)
+ printf (_("no symbols\n"));
+
for (count = 0; count < max; count++)
{
if (*current)
for (count = 0; count < max; count++)
{
if (*current)