This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
possible 64bit bug
- To: binutils at sourceware dot cygnus dot com
- Subject: possible 64bit bug
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Tue, 22 Feb 2000 22:55:21 -0500 (EST)
- Cc: lucier at math dot purdue dot edu (Brad Lucier)
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)),
" ");
}