From deecf979f60718abfe8476701cf3c871bc58ad13 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 12 Sep 1999 18:39:32 +0000 Subject: [PATCH] 1999-09-12 Donn Terry * objdump.c (dump_section_header): Print any comdat information. --- binutils/ChangeLog | 2 ++ binutils/objdump.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8010b8375ba..78c0c071fe3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,7 @@ 1999-09-12 Donn Terry + * 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 5b36ae224a8..f51af3f725d 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 = ", "; } -- 2.30.2