From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5365 invoked by alias); 20 Sep 2006 18:49:36 -0000 Received: (qmail 5354 invoked by uid 22791); 20 Sep 2006 18:49:35 -0000 X-Spam-Check-By: sourceware.org Received: from w099.z064220152.sjc-ca.dsl.cnc.net (HELO bluesmobile.corp.specifix.com) (64.220.152.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Sep 2006 18:49:30 +0000 Received: from localhost.localdomain (bluesmobile.specifix.com [64.220.152.99]) by bluesmobile.corp.specifix.com (Postfix) with ESMTP id 5B94F3B8B7; Wed, 20 Sep 2006 11:44:48 -0700 (PDT) Subject: Re: PATCH: PR ld/3191: Linker failed to handle DW_FORM_ref_addr properly From: Jim Wilson To: "H. J. Lu" Cc: binutils@sources.redhat.com In-Reply-To: <20060920052010.GA22345@lucon.org> References: <20060920043701.GA24160@lucon.org> <20060920052010.GA22345@lucon.org> Content-Type: text/plain Date: Wed, 20 Sep 2006 19:15:00 -0000 Message-Id: <1158778090.2519.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00198.txt.bz2 On Tue, 2006-09-19 at 22:20 -0700, H. J. Lu wrote: > We should only do it for DWARF3. But gcc generates DWARF3 info in > a DWARF2 file. In DWARF2, the offset size is always 4, so there is no conflict here. This code will work fine for both DWARF2 and DWARF3. I do see a problem though, which is that I don't understand where the 64-bit DWARF3 is coming from. Gcc does not emit 64-bit DWARF for any target except Irix5/6, and the bug report does not say anything about using a custom modified gcc. I looked at the client.o object file in the bug report, and there is no 64-bit DWARF there. (The pointers are 64-bit, but the debug info offsets are not.) I don't understand how this patch can help. There is something that hasn't been explained here yet. -- Jim Wilson, GNU Tools Support, http://www.specifix.com