From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20415 invoked by alias); 13 May 2013 18:42:19 -0000 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 Received: (qmail 20405 invoked by uid 89); 13 May 2013 18:42:19 -0000 X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 13 May 2013 18:42:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4DIgHVA006549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 13 May 2013 14:42:17 -0400 Received: from host2.jankratochvil.net (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r4DIgDhp032289 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 13 May 2013 14:42:16 -0400 Date: Mon, 13 May 2013 18:42:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: implptrconst.exp error on 32-bit targets [Re: [3/4] fix DW_OP_GNU_implicit_pointer pointing to a constant] Message-ID: <20130513184212.GA11756@host2.jankratochvil.net> References: <87vc7ukvl0.fsf@fleche.redhat.com> <87a9o7yk11.fsf@fleche.redhat.com> <20130512151434.GA7026@host2.jankratochvil.net> <87li7ibxf0.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87li7ibxf0.fsf@fleche.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-05/txt/msg00451.txt.bz2 On Mon, 13 May 2013 19:29:55 +0200, Tom Tromey wrote: > Let me know what you think of this. I find it correct. As it uses DWARF-2 the DW_OP_GNU_implicit_pointer DIE offset has size like the DWARF/inferior address size which you changed 8 -> 4 bytes now. As was already discussed before using 32-bit addresses works even for 64-bit archs except for - IIRC - Alpha, but that we just ignore. This testcase in fact does not need any relocations, one could even keep there the 64-bit address zize and rely on the fact that .debug_info in this testcase will not contain any other CU and make the reference relative against label at offset 0 of .debug_info (.Lcu1_begin). This will then work even with 64-bit address sizes in 32-bit ELF file. Thanks, Jan