This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Finding ld.so dynamic loader
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Eager <eager at eagercon dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 30 Jan 2008 11:51:14 -0500
- Subject: Re: Finding ld.so dynamic loader
- References: <47A0A8D8.7090508@eagercon.com>
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