This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PR binutils/4292 fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Thu, 5 Apr 2007 16:05:55 +0930
- Subject: PR binutils/4292 fix
Broke 32-bit host/target compiled with 64-bit bfd.
PR binutils/4292
* nm.c (print_value): Cast bfd_vma to unsigned long to suit
value_format_32bit.
Index: binutils/nm.c
===================================================================
RCS file: /cvs/src/src/binutils/nm.c,v
retrieving revision 1.50
diff -u -p -r1.50 nm.c
--- binutils/nm.c 2 Apr 2007 16:51:13 -0000 1.50
+++ binutils/nm.c 5 Apr 2007 06:33:47 -0000
@@ -1334,7 +1334,7 @@ print_value (bfd *abfd ATTRIBUTE_UNUSED,
switch (print_width)
{
case 32:
- printf (value_format_32bit, val);
+ printf (value_format_32bit, (unsigned long) val);
break;
case 64:
--
Alan Modra
IBM OzLabs - Linux Technology Centre