From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21560 invoked by alias); 24 Jul 2006 22:02:38 -0000 Received: (qmail 20916 invoked by uid 22791); 24 Jul 2006 22:02:37 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 24 Jul 2006 22:02:35 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G58VT-00056t-O3; Mon, 24 Jul 2006 18:02:31 -0400 Date: Mon, 24 Jul 2006 22:02:00 -0000 From: Daniel Jacobowitz To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Riss Cc: Frederic RISS , gdb-patches@sources.redhat.com, Steven Johnson Subject: Re: [PATCH] Allow dwarf2 debug info for function at address 0 Message-ID: <20060724220231.GC18918@nevyn.them.org> Mail-Followup-To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Riss , Frederic RISS , gdb-patches@sources.redhat.com, Steven Johnson References: <1153491793.7783.373.camel@crx549.cro.st.com> <20060724200457.GA15759@nevyn.them.org> <1153777182.4946.26.camel@funkylaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1153777182.4946.26.camel@funkylaptop> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00371.txt.bz2 On Mon, Jul 24, 2006 at 11:39:42PM +0200, Frédéric Riss wrote: > OK; so my testing was deficient... but maybe we're not speaking of the > same 'correct handling'? > > I thought that we had issues with relocating the debug information > coming from different linkonce sections against the only one kept in the > linked file... but that definitely works for me on a simple example. It depends what version of binutils you've got installed. At least one of HJ's "Linux binutils" releases does this, but it's actually even more wrong to point multiple copies of the debug information at the same code address; you can get very confusing mismatches if they were e.g. compiled by different compilers. Thanks for the revised patch; it looks great. -- Daniel Jacobowitz CodeSourcery