* nm.c (display_rel_file): Treat bfd_error_no_symbols as
non-fatal.
This commit is contained in:
parent
9db0be606e
commit
bf26dcc6ae
@ -1,3 +1,8 @@
|
||||
2013-10-24 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* nm.c (display_rel_file): Treat bfd_error_no_symbols as
|
||||
non-fatal.
|
||||
|
||||
2013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
|
||||
|
||||
* readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA.
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user