diff options
author | Nick Clifton <nickc@redhat.com> | 2005-04-04 10:32:28 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-04-04 10:32:28 +0000 |
commit | 1601489a1f7eacf479291bdb01235c229c71c217 (patch) | |
tree | f5a8563a5061e64785c39cba5f834a3ec05e89e9 /binutils/objdump.c | |
parent | 3914be9c8b8e5a5545160b64369d9f3504f29fd1 (diff) | |
download | binutils-redhat-1601489a1f7eacf479291bdb01235c229c71c217.tar.gz |
Add a check to see if the section for the symbol is chosen using
process_section_p.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 9940242529..a12d95d698 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2345,8 +2345,9 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic) printf (_("could not determine the type of symbol number %ld\n"), count); - else if (dump_special_syms - || !bfd_is_target_special_symbol (cur_bfd, *current)) + else if (process_section_p ((* current)->section) + && (dump_special_syms + || !bfd_is_target_special_symbol (cur_bfd, *current))) { const char *name = (*current)->name; @@ -2369,6 +2370,7 @@ dump_symbols (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic) bfd_print_symbol_all); printf ("\n"); } + current++; } printf ("\n\n"); |