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]

[Fwd: Re: Small fix for bfd/elf.c]




-------- Original Message --------
Subject: Re: Small fix for bfd/elf.c
Date: Fri, 23 Nov 2007 09:47:17 -0500
From: Daniel Jacobowitz <drow@false.org>
To: Howard Chu <hyc@symas.com>
CC: gdb-patches@sourceware.org
References: <47467C96.3070806@symas.com>

On Thu, Nov 22, 2007 at 11:09:10PM -0800, Howard Chu wrote:
Tripped over this while trying to compile on Windows x64.

Please send BFD patches to binutils@sourceware.org.


--
Daniel Jacobowitz
CodeSourcery
.


-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
--- gdb-6.7.1/bfd/elf.c	2007-08-25 06:20:41.000000000 -0700
+++ gdb-6.7.1/bfd/elf.c.N	2007-11-22 22:09:28.884623800 -0800
@@ -8418,6 +8418,8 @@
 	{
 #if BFD_HOST_64BIT_LONG
 	  sprintf (buf, "%016lx", value);
+#elif BFD_HOST_64BIT_LONG_LONG
+	  sprintf (buf, "%016llx", value);
 #else
 	  sprintf (buf, "%08lx%08lx", _bfd_int64_high (value),
 		   _bfd_int64_low (value));
@@ -8446,6 +8448,8 @@
 	{
 #if BFD_HOST_64BIT_LONG
 	  fprintf ((FILE *) stream, "%016lx", value);
+#elif BFD_HOST_64BIT_LONG_LONG
+	  fprintf ((FILE *) stream, "%016llx", value);
 #else
 	  fprintf ((FILE *) stream, "%08lx%08lx",
 		   _bfd_int64_high (value), _bfd_int64_low (value));

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