From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27302 invoked by alias); 6 Jan 2010 19:16:43 -0000 Received: (qmail 27290 invoked by uid 22791); 6 Jan 2010 19:16:43 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jan 2010 19:16:38 +0000 Received: (qmail 4071 invoked from network); 6 Jan 2010 19:16:19 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 6 Jan 2010 19:16:19 -0000 Date: Wed, 06 Jan 2010 19:16:00 -0000 From: Daniel Jacobowitz To: Jan Kratochvil Cc: Tristan Gingold , gdb-patches@sourceware.org Subject: Re: Regression on prelinked-sepdebug-shlibs Message-ID: <20100106191608.GA28581@caradoc.them.org> Mail-Followup-To: Jan Kratochvil , Tristan Gingold , gdb-patches@sourceware.org References: <20091225200440.GA3747@host0.dyn.jankratochvil.net> <20100106180510.GA6748@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100106180510.GA6748@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00118.txt.bz2 On Wed, Jan 06, 2010 at 07:05:10PM +0100, Jan Kratochvil wrote: > On Wed, 06 Jan 2010 17:38:55 +0100, Tristan Gingold wrote: > > I think this is not correct: the separate debug file may have one section at > > zero while the main may not. In the above code, we do not consider wether > > an offset is used. > > > > I am not sure that this can happen with ELF however. Sorry, I don't quite understand this. > This has_section_at_zero feature is intended for embedded targets. I only > know has_section_at_zero can never happen for cases I am aware of. > > IMHO embedded targets do not use the file-vs-memory offsets but not sure. > Also the embedded targets probably do not use .linkonce/COMDAT - this is why > this has_section_at_zero differentiator could work. An embedded program can use either of these things. The linkonce/comdat issue is a constant problem, but this was the best available heuristic. -- Daniel Jacobowitz CodeSourcery