This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] readelf: Don't print section type twice for --section-details


Signed-off-by: Francois H. Theron <francois.theron@netronome.com>
---
 binutils/ChangeLog | 4 ++++
 binutils/readelf.c | 3 +--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a2c71eb74b..a5897fc0c9 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2018-07-11  Francois H. Theron  <francois.theron@netronome.com>
+
+	* readelf.c: 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
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 88fb356cd8..7716381d81 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.17.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]