From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18477 invoked by alias); 16 Nov 2005 02:53:54 -0000 Received: (qmail 18464 invoked by uid 22791); 16 Nov 2005 02:53:52 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 16 Nov 2005 02:53:52 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EcDQj-0007Ik-8J; Tue, 15 Nov 2005 21:53:49 -0500 Date: Wed, 16 Nov 2005 02:53:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Ron McCall , gdb@sources.redhat.com Subject: Re: warning: (Internal error: pc 0xd00 in read in psymtab, but not in symtab.) Message-ID: <20051116025349.GA28051@nevyn.them.org> Mail-Followup-To: Jim Blandy , Ron McCall , gdb@sources.redhat.com References: <20051115204629.32845.qmail@web81206.mail.mud.yahoo.com> <8f2776cb0511151510p1d7fe81dl7aa7a6b439b4622@mail.gmail.com> <20051115232518.GA24754@nevyn.them.org> <8f2776cb0511151612g34ce97ccn9a6b5101615b49f5@mail.gmail.com> <20051116003812.GA25895@nevyn.them.org> <8f2776cb0511151733l3fe56256w22954ac8ba9afa7b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f2776cb0511151733l3fe56256w22954ac8ba9afa7b@mail.gmail.com> User-Agent: Mutt/1.5.8i 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: 2005-11/txt/msg00309.txt.bz2 On Tue, Nov 15, 2005 at 05:33:28PM -0800, Jim Blandy wrote: > On 11/15/05, Daniel Jacobowitz wrote: > > > When we drop a linkonce section, we also drop all relocs referring to > > > symbols defined in that section, or the section's STT_SECTION symbol. > > > (Or do we just make the relocs use STN_UNDEF as their symbol?) If the > > > > Neither, quite. We specifically fail to resolve them because they are > > in .debug_info; otherwise this would be a fatal error. > > Do we need some sort of annotation in the debug information itself, > indicating that it's referring to stuff that might go away? Sourceware hiccuped my last copy.... I wrote: If you're going to change the toolchain to solve this problem, this isn't the way to do it. Just put the .debug_info section in a COMDAT group with the section to be discarded. This should be a pretty trivial change nowadays, since the linker has grown proper COMDAT support. Inter-compilation-unit references make this feasible. -- Daniel Jacobowitz CodeSourcery, LLC