From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8524 invoked by alias); 21 Jun 2006 14:44:15 -0000 Received: (qmail 8515 invoked by uid 22791); 21 Jun 2006 14:44:15 -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; Wed, 21 Jun 2006 14:44:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ft2DT-0008TT-V1; Wed, 21 Jun 2006 08:53:56 -0400 Date: Wed, 21 Jun 2006 15:28:00 -0000 From: Daniel Jacobowitz To: Frederic RISS Cc: Steven Johnson , Jim Blandy , gdb@sources.redhat.com Subject: Re: Problems with startup code symbols (Copious warnings) Message-ID: <20060621125355.GA32552@nevyn.them.org> Mail-Followup-To: Frederic RISS , Steven Johnson , Jim Blandy , gdb@sources.redhat.com References: <1150704956.2480.65.camel@crx549.cro.st.com> <20060620122112.GA20079@nevyn.them.org> <1150806737.2480.71.camel@crx549.cro.st.com> <20060620123712.GA20631@nevyn.them.org> <1150808381.2480.85.camel@crx549.cro.st.com> <449856E1.50308@sakuraindustries.com> <20060620233444.GA14292@nevyn.them.org> <1150877429.2480.91.camel@crx549.cro.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1150877429.2480.91.camel@crx549.cro.st.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00173.txt.bz2 On Wed, Jun 21, 2006 at 10:10:29AM +0200, Frederic RISS wrote: > On Tue, 2006-06-20 at 19:34 -0400, Daniel Jacobowitz wrote: > > On Wed, Jun 21, 2006 at 07:13:21AM +1100, Steven Johnson wrote: > > > Is it possible to to tell what section the debug info is for? > > > > No, at this point, that's exactly the problem. The necessary > > information is gone. > > > > Long term, the correct fix to this is not in GDB anyway. Both linker > > and compiler fixes have been pursued. Someone just needs to push > > through on it. > > Just out of curiosity, do you have any pointers to these 'pursued > fixes'? 1. Alan Modra posted an initial implementation of linker support for debug info editing. The linker would simply discard extra DIEs. But, it wasn't complete. This was maybe two months ago. 2. The generally accepted Right Fix is to use ELF COMDAT groups instead of linkonce sections, and then whenever the compiler discards a section, it can discard the whole group including its DIEs. -- Daniel Jacobowitz CodeSourcery