From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3359 invoked by alias); 8 Mar 2007 22:24:20 -0000 Received: (qmail 3351 invoked by uid 22791); 8 Mar 2007 22:24:20 -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; Thu, 08 Mar 2007 22:24:14 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HPR1t-0001xW-Jv; Thu, 08 Mar 2007 17:24:09 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HPR1t-0000ar-2b; Thu, 08 Mar 2007 17:24:09 -0500 Date: Thu, 08 Mar 2007 22:24:00 -0000 From: Daniel Jacobowitz To: Roland Puntaier Cc: gdb@sources.redhat.com Subject: Re: Antwort: Re: relocations when doing file command at gdb prompt Message-ID: <20070308222409.GA2227@caradoc.them.org> Mail-Followup-To: Roland Puntaier , gdb@sources.redhat.com References: <20070308160501.GA8042@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00150.txt.bz2 On Thu, Mar 08, 2007 at 06:54:16PM +0100, Roland Puntaier wrote: > This means there is no way to avoid the doubling and still keep the .rel > sections without changing GDB code, doesn't it? Yes. You could remove just the relocations for the debug sections, but that's silly. If you add this to the top of symfile_relocate_debug_section, it should fix the problem. + if (bfd_get_file_flags (abfd) & (EXEC_P | DYNAMIC)) + return NULL; GNU binutils doesn't create shared libraries that need relocations applied any more. In fact, it hasn't for a while. Maybe we should remove support for those quirky objects, since the --emit-relocs variant seems more common and more useful. Does anyone have an opinion? -- Daniel Jacobowitz CodeSourcery