diff options
author | Nick Clifton <nickc@redhat.com> | 2013-10-25 09:26:56 +0100 |
---|---|---|
committer | Tom Tromey <tromey@sourceware.org> | 2013-10-25 14:03:01 +0000 |
commit | bf26dcc6aea39b761ac7029413ab66329165ac1f (patch) | |
tree | 9e52c3b5047fdd3008b7bd7ae1b39b34bc90064a /binutils/nm.c | |
parent | 9db0be606ef922ba2d2a7c80cb3817c5fa0469ee (diff) | |
download | gdb-bf26dcc6aea39b761ac7029413ab66329165ac1f.zip gdb-bf26dcc6aea39b761ac7029413ab66329165ac1f.tar.gz gdb-bf26dcc6aea39b761ac7029413ab66329165ac1f.tar.bz2 |
* nm.c (display_rel_file): Treat bfd_error_no_symbols as
non-fatal.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 5c32520..9b6648e 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) { |