This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

possible 64bit bug


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)),
  		  " ");
  	}
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]