This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

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


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