aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 18:39:32 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 18:39:32 +0000
commitdeecf979f60718abfe8476701cf3c871bc58ad13 (patch)
tree90b54f52c52a9cbb2c4d2bc9ad6ce77dbe698ac1 /binutils
parent3994e2c66d792e3ea0f48d1cf039a022a62960bb (diff)
downloadgdb-deecf979f60718abfe8476701cf3c871bc58ad13.zip
gdb-deecf979f60718abfe8476701cf3c871bc58ad13.tar.gz
gdb-deecf979f60718abfe8476701cf3c871bc58ad13.tar.bz2
1999-09-12 Donn Terry <donn@interix.com>
* objdump.c (dump_section_header): Print any comdat information.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog2
-rw-r--r--binutils/objdump.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8010b83..78c0c07 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,7 @@
1999-09-12 Donn Terry <donn@interix.com>
+ * objdump.c (dump_section_header): Print any comdat information.
+
* objcopy.c (parse_flags): Handle "noload", "debug", and "share".
* binutils.texi, objcopy.1: Document new flags.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 5b36ae2..f51af3f 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -368,6 +368,11 @@ dump_section_header (abfd, section, ignored)
break;
}
printf ("%s%s", comma, ls);
+
+ if (section->comdat != NULL)
+ printf (" (COMDAT %s %ld)", section->comdat->name,
+ section->comdat->symbol);
+
comma = ", ";
}