This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB honouring RPATH in binaries.
> 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