diff options
author | Nick Clifton <nickc@redhat.com> | 2013-10-31 11:30:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-10-31 11:30:08 +0000 |
commit | fb4ec44e0d7f4745a480ab81994ee2965ea8bcfb (patch) | |
tree | bbf2908744178a4635367040c0ea67e1de0f6825 | |
parent | be157b60778bf79a915cd8e2df5bb0e8342ddbdd (diff) | |
download | ppe42-binutils-fb4ec44e0d7f4745a480ab81994ee2965ea8bcfb.tar.gz ppe42-binutils-fb4ec44e0d7f4745a480ab81994ee2965ea8bcfb.zip |
* nm.c (display_rel_file): Treat bfd_error_no_symbols as
non-fatal.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/nm.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0e763d8d75..a8ddd22f79 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2013-10-31 Nick Clifton <nickc@redhat.com> + + * nm.c (display_rel_file): Treat bfd_error_no_symbols as + non-fatal. + 2013-10-12 H.J. Lu <hongjiu.lu@intel.com> * dwarf.c (display_debug_frames): Pass offset_size to diff --git a/binutils/nm.c b/binutils/nm.c index 5c325201f2..9b6648eb71 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) { |