This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
readelf 64-bit e_entry fix
- To: binutils at sourceware dot cygnus dot com
- Subject: readelf 64-bit e_entry fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Tue, 25 Sep 2001 22:20:19 +0930
Applied.
binutils/ChangeLog
* readelf.c (print_vma): Print 8 digits of low hex value.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.121
diff -u -p -r1.121 readelf.c
--- readelf.c 2001/09/19 05:33:16 1.121
+++ readelf.c 2001/09/25 12:44:17
@@ -473,7 +473,7 @@ print_vma (vma, mode)
printf ("%lx", vma);
#else
if (_bfd_int64_high (vma))
- printf ("%lx%lx", _bfd_int64_high (vma), _bfd_int64_low (vma));
+ printf ("%lx%8.8lx", _bfd_int64_high (vma), _bfd_int64_low (vma));
else
printf ("%lx", _bfd_int64_low (vma));
#endif