[PATCH] readelf -x

Segher Boessenkool segher@kernel.crashing.org
Mon Oct 27 13:31:00 GMT 2003


Obvious patch.  DEL characters should not be displayed.

Please install, if approved.


Segher




2003-10-26  Segher Boessenkool  <segher@kernel.crashing.org>

	* readelf.c (dump_section): Don't display DEL characters.




*** readelf.c~	Sun Oct 26 15:58:44 2003
--- readelf.c	Sun Oct 26 16:01:40 2003
*************** dump_section (section, file)
*** 6028,6034 ****
        for (j = 0; j < lbytes; j++)
  	{
  	  k = data [j];
! 	  if (k >= ' ' && k < 0x80)
  	    printf ("%c", k);
  	  else
  	    printf (".");
--- 6028,6034 ----
        for (j = 0; j < lbytes; j++)
  	{
  	  k = data [j];
! 	  if (k >= ' ' && k < 0x7f)
  	    printf ("%c", k);
  	  else
  	    printf (".");



More information about the Binutils mailing list