From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28947 invoked by alias); 30 Jan 2008 16:51:36 -0000 Received: (qmail 28921 invoked by uid 22791); 30 Jan 2008 16:51:36 -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; Wed, 30 Jan 2008 16:51:17 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 054CC98214; Wed, 30 Jan 2008 16:51:16 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id E26309801D; Wed, 30 Jan 2008 16:51:15 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JKG9a-0005gB-UT; Wed, 30 Jan 2008 11:51:14 -0500 Date: Wed, 30 Jan 2008 16:51:00 -0000 From: Daniel Jacobowitz To: Michael Eager Cc: gdb@sourceware.org Subject: Re: Finding ld.so dynamic loader Message-ID: <20080130165114.GA21783@caradoc.them.org> Mail-Followup-To: Michael Eager , gdb@sourceware.org References: <47A0A8D8.7090508@eagercon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47A0A8D8.7090508@eagercon.com> User-Agent: Mutt/1.5.17 (2007-12-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: 2008-01/txt/msg00334.txt.bz2 On Wed, Jan 30, 2008 at 08:42:00AM -0800, Michael Eager wrote: > If solib_absolute_prefix is empty (true for almost all targets) and > /lib/ld.so.1 exists on the host system, this will be opened in > preference to either one specified on the SOLIB_SEARCH_PATH or using a > target search path. In my opinion, there's the mistake: solib_absolute_prefix isn't related to your target. It's a configuration setting, and if you're using gdbserver to talk to a remote system, you should set it ("set sysroot"). If you don't have the same layout as your target reproduced on your host, set it to a nonexistant path. That said, I'm not sure why we search the literal path before the search path either. -- Daniel Jacobowitz CodeSourcery