From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32012 invoked by alias); 20 Feb 2003 20:12:18 -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 31997 invoked from network); 20 Feb 2003 20:12:17 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 20 Feb 2003 20:12:17 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id PAA14499; Thu, 20 Feb 2003 15:00:32 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id PAA15023; Thu, 20 Feb 2003 15:12:16 -0500 Message-ID: <008d01c2d91c$59b4fba0$0202040a@catdog> From: "Kris Warkentin" To: "Daniel Jacobowitz" Cc: "Kevin Buettner" , References: <0db801c2d914$78f80a50$0202040a@catdog> <1030220193301.ZM10611@localhost.localdomain> <20030220194049.GA19653@nevyn.them.org> <001301c2d918$894ef1d0$0202040a@catdog> <20030220194852.GA20424@nevyn.them.org> <002701c2d919$d07edce0$0202040a@catdog> <1030220195833.ZM10783@localhost.localdomain> <1030220200052.ZM10821@localhost.localdomain> <005301c2d91a$e919bb70$0202040a@catdog> <20030220200536.GA21441@nevyn.them.org> Subject: Re: GDB honouring RPATH in binaries. Date: Thu, 20 Feb 2003 20:12:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-02/txt/msg00449.txt.bz2 > On Thu, Feb 20, 2003 at 03:01:52PM -0500, Kris Warkentin wrote: > > > > For remote targets, you must have solib-absolute-prefix set. Searching > > > > host libraries (whether found via RPATH or some other means) is almost > > > > invariably wrong. > > > > > > BTW, the sysroot stuff that Daniel recently added makes this > > > a good deal less painful for the user. > > > > Not familiar with this. Is there some documentation somewhere? > > It's in the GDB manual now, and it also applies to LD and GCC. For GDB > it only amounts to: > > You can set the default value of @samp{solib-absolute-prefix} by using > the configure-time @samp{--with-sysroot} option. > > For GCC and LD it's a great deal more thorough; it changes header > search paths, library search paths, etc. Ah. I can see how that would be useful. We have an additional difficulty in that we support multi-endian targets (mips, arm) so our solib-absolute-prefix could change from $QNX_TARGET/armle to $QNX_TARGET/armbe depending on the binary we load. We already set up our solib-search-path and s-a-p programmatically and I may have to expand that logic further to make it all work correctly. cheers, Kris