From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25750 invoked by alias); 28 Sep 2007 16:05:37 -0000 Received: (qmail 25737 invoked by uid 22791); 28 Sep 2007 16:05:37 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Sep 2007 16:05:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 304DB9832B; Fri, 28 Sep 2007 16:05:33 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 113B99831F; Fri, 28 Sep 2007 16:05:33 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IbILM-0003lM-C2; Fri, 28 Sep 2007 12:05:32 -0400 Date: Fri, 28 Sep 2007 16:29:00 -0000 From: Daniel Jacobowitz To: Alex Bennee Cc: gdb@sourceware.org, binutils@sourceware.org Subject: Re: GDB confused by -shared object executable Message-ID: <20070928160532.GA14380@caradoc.them.org> Mail-Followup-To: Alex Bennee , gdb@sourceware.org, binutils@sourceware.org References: <1190995357.27975.157.camel@murta.transitives.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1190995357.27975.157.camel@murta.transitives.com> User-Agent: Mutt/1.5.15 (2007-04-09) 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-09/txt/msg00243.txt.bz2 On Fri, Sep 28, 2007 at 05:02:37PM +0100, Alex Bennee wrote: > Which doesn't seem to work. So questions: > > 1. Am I using the correct instantiation to load symbols at a particular > address? > 2. Should GDB check the ELF when it loads it to see if it is an > executable shared object? Red Hat (Elena, I think) long ago implemented support for PIE in GDB. What you're doing is basically the same thing. So far, no one has gotten around to merging that support to the FSF releases. I think it's in both the Red Hat and Ubuntu packages nowadays. -- Daniel Jacobowitz CodeSourcery