Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Howard Chu <hyc@symas.com>
To: gdb-patches@sourceware.org
Subject: Small fix for bfd/elf.c
Date: Fri, 23 Nov 2007 07:12:00 -0000	[thread overview]
Message-ID: <47467C96.3070806@symas.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

Tripped over this while trying to compile on Windows x64.
-- 
   -- 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/

[-- Attachment #2: dif.txt --]
[-- Type: text/plain, Size: 660 bytes --]

--- 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));

             reply	other threads:[~2007-11-23  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23  7:12 Howard Chu [this message]
2007-11-23 14:47 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47467C96.3070806@symas.com \
    --to=hyc@symas.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox