From 661f7c357e34dee7936489da7a385c29a1343d02 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 4 Apr 2005 10:32:28 +0000 Subject: Add a check to see if the section for the symbol is chosen using process_section_p. --- binutils/objdump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'binutils/objdump.c') diff --git a/binutils/objdump.c b/binutils/objdump.c index 9940242..a12d95d 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"); -- cgit v1.1