From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7704 invoked by alias); 7 Aug 2005 19:09:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7692 invoked by uid 22791); 7 Aug 2005 19:09:01 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 07 Aug 2005 19:09:01 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E1qW3-0004gh-D7; Sun, 07 Aug 2005 15:08:59 -0400 Date: Sun, 07 Aug 2005 19:09:00 -0000 From: Daniel Jacobowitz To: "H. J. Lu" Cc: GDB Subject: Re: Does gdb understand copy relocation? Message-ID: <20050807190859.GA17992@nevyn.them.org> Mail-Followup-To: "H. J. Lu" , GDB References: <20050807151216.GA18252@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050807151216.GA18252@lucon.org> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00032.txt.bz2 On Sun, Aug 07, 2005 at 08:12:16AM -0700, H. J. Lu wrote: > On targets with copy relocation, when executable references a data > symbol defined in DSO, a copy relocation will be used to copy the > definition from DSO to executable and the copy in executable will be > used by the process. But gdb I am using insists using the one in DSO. > Is there a way to teach gdb about copy relocation? GDB does not know anything about symbol resolution at all. It also does not use the relocations for much of anything, just the symbol tables. I would have expected it to prefer the copy in the executable. I'm a bit surprised if it didn't. -- Daniel Jacobowitz CodeSourcery, LLC