possible 64bit bug

Brad Lucier lucier@math.purdue.edu
Tue Feb 22 19:55:00 GMT 2000


I just built H. J. Lu's binutils-2.9.5.0.27 on alphaev6-unknown-linux-gnu
on my Red Hat 6.0 system and found the following problem:

../../binutils/readelf.c:3178: warning: field width is not type int (arg 3)

I think the following will fix it. (strlen returns long on alpha/linux)

Brad Lucier

===================================================================
RCS file: RCS/readelf.c,v
retrieving revision 1.1
diff -c -r1.1 readelf.c
*** readelf.c	2000/02/23 03:28:38	1.1
--- readelf.c	2000/02/23 03:32:20
***************
*** 3174,3180 ****
  	  print_vma (entry->d_tag, FULL_HEX);
  	  printf (" (%s)%*s",
  		  get_dynamic_type (entry->d_tag),
! 		  (is_32bit_elf ? 27 : 19) - strlen (get_dynamic_type (entry->d_tag)),
  		  " ");
  	}
  
--- 3174,3180 ----
  	  print_vma (entry->d_tag, FULL_HEX);
  	  printf (" (%s)%*s",
  		  get_dynamic_type (entry->d_tag),
! 		  (is_32bit_elf ? 27 : 19) - (int) strlen (get_dynamic_type (entry->d_tag)),
  		  " ");
  	}
  


More information about the Binutils mailing list