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

* readelf.c (process_section_headers): Don't print section type
	twice for --section-details.
This commit is contained in:
Francois H. Theron 2018-07-11 18:14:16 +02:00 committed by Alan Modra
parent 639eff9357
commit 55cc53e98b
2 changed files with 6 additions and 2 deletions

View 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> 2018-07-10 Alan Modra <amodra@gmail.com>
* testsuite/lib/binutils-common.exp (supports_gnu_unique): Return * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return

View File

@ -6508,8 +6508,7 @@ process_section_headers (Filedata * filedata)
} }
else if (do_section_details) else if (do_section_details)
{ {
printf (" %-15.15s ", putchar (' ');
get_section_type_name (filedata, section->sh_type));
print_vma (section->sh_addr, LONG_HEX); print_vma (section->sh_addr, LONG_HEX);
if ((long) section->sh_offset == section->sh_offset) if ((long) section->sh_offset == section->sh_offset)
printf (" %16.16lx", (unsigned long) section->sh_offset); printf (" %16.16lx", (unsigned long) section->sh_offset);