From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8856 invoked by alias); 17 Apr 2008 17:37:34 -0000 Received: (qmail 8845 invoked by uid 22791); 17 Apr 2008 17:37:33 -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; Thu, 17 Apr 2008 17:37:14 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 4DDA2983D6; Thu, 17 Apr 2008 17:37:12 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 0B8AD982C4; Thu, 17 Apr 2008 17:37:12 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JmY2p-0001mX-AV; Thu, 17 Apr 2008 13:37:11 -0400 Date: Thu, 17 Apr 2008 17:48:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: Joel Brobecker , gdb-patches@sourceware.org Subject: Re: [RFA/solib-svr4] use AT_BASE auxiliary entry to compute load base address Message-ID: <20080417173711.GN17488@caradoc.them.org> Mail-Followup-To: Ulrich Weigand , Joel Brobecker , gdb-patches@sourceware.org References: <20070912211805.GF10540@adacore.com> <200804171511.m3HFBc5N021455@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804171511.m3HFBc5N021455@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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: 2008-04/txt/msg00355.txt.bz2 On Thu, Apr 17, 2008 at 05:11:38PM +0200, Ulrich Weigand wrote: > GDB used to work correctly in the presence of prelinking anyway, > because for regular shared libraries it detected that mismatch by > comparing the load addresses from the BFD it reads with those > recorded in the dynamic loader's data structures (LM_ADDR_CHECK), > and adjusting its expectations if it detects prelinking. Can we read the dynamic linker's ELF header from the target, to compare? Wait, no, we can't... if we knew where it was loaded we wouldn't need AT_BASE. Well, we could ask gdbserver to read from the target filesystem for us... -- Daniel Jacobowitz CodeSourcery