From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14617 invoked by alias); 9 Mar 2005 12:53:58 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 14568 invoked from network); 9 Mar 2005 12:53:52 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Mar 2005 12:53:52 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j29CrqSO007176 for ; Wed, 9 Mar 2005 07:53:52 -0500 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j29Crqn09454; Wed, 9 Mar 2005 07:53:52 -0500 Received: from [172.31.0.98] (vpnuser4.surrey.redhat.com [172.16.9.4]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j29Crppa028890; Wed, 9 Mar 2005 12:53:51 GMT Message-ID: <422EF4B5.2000204@redhat.com> Date: Wed, 09 Mar 2005 12:53:00 -0000 From: Nick Clifton User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: David Lecomber CC: binutils@sources.redhat.com Subject: Re: XCOFF 64 function address wrong? References: <1110356435.7150.2.camel@cpc2-oxfd5-5-0-cust103.oxfd.cable.ntl.com> In-Reply-To: <1110356435.7150.2.camel@cpc2-oxfd5-5-0-cust103.oxfd.cable.ntl.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00270.txt.bz2 Hi David, > I have a 64-bit AIX 5.2 XLC 7 compiled hello world binary. I've built > up gdb and binutils with --enable-64-bit-bfd - from latest CVS. > > In GDB, it miscalculates the main(), as 0x428 (instead of 0x10000428). This looks like a truncation to 32-bits rather than a more general miscalculation... > So, in using a fresh binutils's "objdump -t": > [ 89](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 2) 0x00000428 .main > Note the 0x0000428 .main, > I'm willing to put some time in to getting this sorted out, but at > present don't know what I'm looking for -- so any help greatly > appreciated. Have a look at the function coff_print_symbol() in bfd/coffgen.c. This is the function that is printing out the incorrect value for .main. My guess is that for some reason XCOFF64 is not defined for your configuration and so it is printing a 32-bit value instead of a 64-bit value. Cheers Nick