From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14740 invoked by alias); 20 Jun 2006 12:21:42 -0000 Received: (qmail 14732 invoked by uid 22791); 20 Jun 2006 12:21:41 -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; Tue, 20 Jun 2006 12:21:38 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FsfEG-0005EJ-Fk; Tue, 20 Jun 2006 08:21:12 -0400 Date: Tue, 20 Jun 2006 12:23:00 -0000 From: Daniel Jacobowitz To: Frederic RISS Cc: Jim Blandy , Steven Johnson , gdb@sources.redhat.com Subject: Re: Problems with startup code symbols (Copious warnings) Message-ID: <20060620122112.GA20079@nevyn.them.org> Mail-Followup-To: Frederic RISS , Jim Blandy , Steven Johnson , gdb@sources.redhat.com References: <4487C21F.2090907@sakuraindustries.com> <44881434.2040207@sakuraindustries.com> <1150704956.2480.65.camel@crx549.cro.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1150704956.2480.65.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/msg00131.txt.bz2 On Mon, Jun 19, 2006 at 10:15:56AM +0200, Frederic RISS wrote: > What about looking at section VMAs? If one loadable section has a VMA of > 0 then we can't discard debug info with low_pc == 0. If no section lives > at address 0 then low_pc == 0 implies that the relocations for this > info couldn't be applied because the code has vanished. > I'm sure I missed somethnig in the general case, but I've added > something like this as a post-load pass in a target_so_ops I implemented > some time ago and it worked well. The problem is that this only works for binaries which _either_ use linkonce sections or code at zero. A binary with both would still not work very well. Is that an improvement? I guess so. -- Daniel Jacobowitz CodeSourcery