aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-04-04 10:32:28 +0000
committerNick Clifton <nickc@redhat.com>2005-04-04 10:32:28 +0000
commit661f7c357e34dee7936489da7a385c29a1343d02 (patch)
treefd46c7872f0ba9787b0ba534188af4e2a0ad751f /binutils
parent9494d739022dc483721f8dc97e19085977e78b38 (diff)
downloadgdb-661f7c357e34dee7936489da7a385c29a1343d02.zip
gdb-661f7c357e34dee7936489da7a385c29a1343d02.tar.gz
gdb-661f7c357e34dee7936489da7a385c29a1343d02.tar.bz2
Add a check to see if the section for the symbol is chosen using
process_section_p.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/objdump.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 4bd54d8..51b5acc 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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-04-01 H.J. Lu <hongjiu.lu@intel.com>
* NEWS: Mention new readelf options, "-N/--full-section-name"
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");