1999-09-12 Donn Terry <donn@interix.com>
authorIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 18:39:32 +0000 (18:39 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 18:39:32 +0000 (18:39 +0000)
* objdump.c (dump_section_header): Print any comdat information.

binutils/ChangeLog
binutils/objdump.c

index 8010b8375ba7195c4df0902892c8c2af4286fe65..78c0c071fe31a106a747aa79a5317f208a2109e7 100644 (file)
@@ -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.
 
index 5b36ae224a886a7d1ae383048024325a324d3e9c..f51af3f725ddf969e27a22af71d2592f1639250c 100644 (file)
@@ -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 = ", ";
     }