From: Francois H. Theron Date: Wed, 11 Jul 2018 16:14:16 +0000 (+0200) Subject: readelf: Don't print section type twice for --section-details X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~1460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55cc53e98b86d9be559073c4f062735e2099d1fb;p=external%2Fbinutils.git readelf: Don't print section type twice for --section-details * readelf.c (process_section_headers): Don't print section type twice for --section-details. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a2c71eb..99fad00 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-07-12 Francois H. Theron + + * readelf.c (process_section_headers): Don't print section type + twice for --section-details. + 2018-07-10 Alan Modra * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return diff --git a/binutils/readelf.c b/binutils/readelf.c index 88fb356..7716381 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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);