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

Alan Modra amodra@sourceware.org
Thu Jul 12 06:14:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55cc53e98b86d9be559073c4f062735e2099d1fb

commit 55cc53e98b86d9be559073c4f062735e2099d1fb
Author: Francois H. Theron <francois.theron@netronome.com>
Date:   Wed Jul 11 18:14:16 2018 +0200

    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:
---
 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  <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
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);



More information about the Binutils-cvs mailing list