View | Details | Raw Unified | Return to bug 18750 | Differences between
and this patch

Collapse All | Expand All

(-)a/bfd/ihex.c (-3 / +3 lines)
Lines 219-225 ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error) Link Here
219
      char buf[10];
219
      char buf[10];
220
220
221
      if (! ISPRINT (c))
221
      if (! ISPRINT (c))
222
	sprintf (buf, "\\%03o", (unsigned int) c);
222
	sprintf (buf, "\\%03o", (unsigned int) c & 0xff);
223
      else
223
      else
224
	{
224
	{
225
	  buf[0] = c;
225
	  buf[0] = c;
Lines 276-282 ihex_scan (bfd *abfd) Link Here
276
      else
276
      else
277
	{
277
	{
278
	  file_ptr pos;
278
	  file_ptr pos;
279
	  char hdr[8];
279
	  unsigned char hdr[8];
280
	  unsigned int i;
280
	  unsigned int i;
281
	  unsigned int len;
281
	  unsigned int len;
282
	  bfd_vma addr;
282
	  bfd_vma addr;
Lines 553-559 ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents) Link Here
553
  error = FALSE;
553
  error = FALSE;
554
  while ((c = ihex_get_byte (abfd, &error)) != EOF)
554
  while ((c = ihex_get_byte (abfd, &error)) != EOF)
555
    {
555
    {
556
      char hdr[8];
556
      unsigned char hdr[8];
557
      unsigned int len;
557
      unsigned int len;
558
      unsigned int type;
558
      unsigned int type;
559
      unsigned int i;
559
      unsigned int i;
(-)a/bfd/srec.c (-1 / +1 lines)
Lines 249-255 srec_bad_byte (bfd *abfd, Link Here
249
      char buf[40];
249
      char buf[40];
250
250
251
      if (! ISPRINT (c))
251
      if (! ISPRINT (c))
252
	sprintf (buf, "\\%03o", (unsigned int) c);
252
	sprintf (buf, "\\%03o", (unsigned int) c & 0xff);
253
      else
253
      else
254
	{
254
	{
255
	  buf[0] = c;
255
	  buf[0] = c;
(-)a/binutils/readelf.c (-2 / +1 lines)
Lines 14467-14473 process_mips_specific (FILE * file) Link Here
14467
	      len = sizeof (* eopt);
14467
	      len = sizeof (* eopt);
14468
	      while (len < option->size)
14468
	      while (len < option->size)
14469
		{
14469
		{
14470
		  char datum = * ((char *) eopt + offset + len);
14470
		  unsigned char datum = * ((unsigned char *) eopt + offset + len);
14471
14471
14472
		  if (ISPRINT (datum))
14472
		  if (ISPRINT (datum))
14473
		    printf ("%c", datum);
14473
		    printf ("%c", datum);
14474
- 

Return to bug 18750