From 55cc53e98b86d9be559073c4f062735e2099d1fb Mon Sep 17 00:00:00 2001 From: "Francois H. Theron" Date: Wed, 11 Jul 2018 18:14:16 +0200 Subject: [PATCH] readelf: Don't print section type twice for --section-details * readelf.c (process_section_headers): Don't print section type twice for --section-details. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); -- 2.7.4