From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29528 invoked by alias); 24 Feb 2011 11:33:23 -0000 Received: (qmail 29519 invoked by uid 22791); 24 Feb 2011 11:33:23 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Feb 2011 11:33:17 +0000 Received: from md1.u-strasbg.fr (md1.u-strasbg.fr [IPv6:2001:660:2402::186]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id p1OBXB1d002714 ; Thu, 24 Feb 2011 12:33:12 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms1.u-strasbg.fr [130.79.204.10]) by md1.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p1OBXBO8040959 ; Thu, 24 Feb 2011 12:33:11 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p1OBXBVq079423 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Thu, 24 Feb 2011 12:33:11 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'H.J. Lu'" Cc: "'Kai Tietz'" , "'Binutils'" References: <-8460070221060995487@unknownmsgid> <-6930711422310680743@unknownmsgid> <4D63D49D.90101@redhat.com> <-2339605939192327273@unknownmsgid> <-3886800211494155692@unknownmsgid> In-Reply-To: Subject: RE: [RFC patch]: Adjust the use of 'long' type in dwarf2.h header Date: Thu, 24 Feb 2011 11:33:00 -0000 Message-ID: <00ae01cbd416$9cefa070$d6cee150$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00290.txt.bz2 > #if __GNUC__ >= 2 > /* Define BFD64 here, even if our default architecture is 32 bit ELF > as this will allow us to read in and parse 64bit and 32bit ELF > files. > Only do this if we believe that the compiler can support a 64 bit > data type. For now we only rely on GCC being able to do this. */ > #define BFD64 > #endif > > .... > #include "dwarf.h" > --- > > dwarf_vma should be the same inside and outside of readelf.c. This means, if I understand this correctly that if I compile a 32 bit readelf executable bfd_vma will be a 64-bit integer inside readelf.c, but a 32-bit integer in dwarf.c. dwarf.c still mainly uses bfd_vma and has dwarf_vma only for one function get_encoded_value... Should read_leb128 (and maybe other functions within dwarf.c) also be changed to use dwarf_vma rather than bfd_vma in that case? Pierre