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

Alan Modra amodra@gmail.com
Thu Jul 12 09:17:00 GMT 2018


On Wed, Jul 11, 2018 at 06:14:16PM +0200, Francois H. Theron wrote:
> --- 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);

Thanks, applied.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list