From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29393 invoked by alias); 23 Nov 2007 07:12:41 -0000 Received: (qmail 29384 invoked by uid 22791); 23 Nov 2007 07:12:40 -0000 X-Spam-Check-By: sourceware.org Received: from highlandsun.propagation.net (HELO highlandsun.propagation.net) (66.221.212.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Nov 2007 07:11:43 +0000 Received: from [127.0.0.1] (highlandsun.com [66.221.212.169]) by highlandsun.propagation.net (8.13.3/8.13.3) with ESMTP id lAN7BZ4i012763 for ; Fri, 23 Nov 2007 01:11:35 -0600 Message-ID: <47467C96.3070806@symas.com> Date: Fri, 23 Nov 2007 07:12:00 -0000 From: Howard Chu User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.9b2pre) Gecko/2007111122 SeaMonkey/2.0a1pre MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Small fix for bfd/elf.c Content-Type: multipart/mixed; boundary="------------070500090008020801040504" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00417.txt.bz2 This is a multi-part message in MIME format. --------------070500090008020801040504 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 260 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/ --------------070500090008020801040504 Content-Type: text/plain; name="dif.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dif.txt" Content-length: 660 --- 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)); --------------070500090008020801040504--