]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR binutils/813
authorNick Clifton <nickc@redhat.com>
Mon, 4 Apr 2005 14:43:58 +0000 (14:43 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 4 Apr 2005 14:43:58 +0000 (14:43 +0000)
Add a check to see if the section for the symbol is chosen using
process_section_p.

binutils/ChangeLog
binutils/objdump.c

index 74af374ff97605eb34d91e55763e9f04bdfa2d39..8a731ad0a54a634327325192f4145002a8a2fa86 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-04  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
+
+       PR binutils/813
+       * objdump.c (dump_symbols): Add a check to see if the section for
+       the symbol is chosen using process_section_p.
+
 2005-03-23  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated translation.
index a3360899b4b69f1a9439519e8d1c11462644e2bb..3a10d4c107e0b5d22ff22e4b8719e5b663ebc5c0 100644 (file)
@@ -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;