From: Nick Clifton Date: Fri, 25 Oct 2013 08:26:56 +0000 (+0100) Subject: * nm.c (display_rel_file): Treat bfd_error_no_symbols as X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf26dcc6aea39b761ac7029413ab66329165ac1f;p=binutils-gdb.git * nm.c (display_rel_file): Treat bfd_error_no_symbols as non-fatal. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e2d53e0c98d..ae505262af9 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2013-10-24 Nick Clifton + + * nm.c (display_rel_file): Treat bfd_error_no_symbols as + non-fatal. + 2013-10-14 Chao-ying Fu * readelf.c (display_mips_gnu_attribute): Support Tag_GNU_MIPS_ABI_MSA. diff --git a/binutils/nm.c b/binutils/nm.c index 5c325201f29..9b6648eb71f 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -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) {