readelf: Don't print section type twice for --section-details
authorFrancois H. Theron <francois.theron@netronome.com>
Wed, 11 Jul 2018 16:14:16 +0000 (18:14 +0200)
committerAlan Modra <amodra@gmail.com>
Thu, 12 Jul 2018 06:13:29 +0000 (15:43 +0930)
* readelf.c (process_section_headers): Don't print section type
twice for --section-details.

binutils/ChangeLog
binutils/readelf.c

index a2c71eb..99fad00 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-12  Francois H. Theron  <francois.theron@netronome.com>
+
+       * readelf.c (process_section_headers): Don't print section type
+       twice for --section-details.
+
 2018-07-10  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return
index 88fb356..7716381 100644 (file)
@@ -6508,8 +6508,7 @@ process_section_headers (Filedata * filedata)
        }
       else if (do_section_details)
        {
-         printf ("       %-15.15s  ",
-                 get_section_type_name (filedata, section->sh_type));
+         putchar (' ');
          print_vma (section->sh_addr, LONG_HEX);
          if ((long) section->sh_offset == section->sh_offset)
            printf ("  %16.16lx", (unsigned long) section->sh_offset);