GDB honouring RPATH in binaries.

Kris Warkentin kewarken@qnx.com
Thu Feb 20 19:44:00 GMT 2003


> Question: when do we need to find shared libraries that we can't use a
> full path + solib-absolute-prefix, where RPATH would be in the least
> useful?  RPATH only matters when you have multiple places you could
> find the library and are interested in which one you got; if there is a
> mapping between target and host filesystems, it should be
> solib-absolute-prefix only.
>
> We generally get full pathnames of loaded modules from the dynamic
> linker, and use that.  Is this a problem for QNX?

In the remote case I suppose it is.  The linker on the remote will have
loaded /lib/libc.so.2 or some such but on the host, that will be
$QNX_TARGET/$CPU/lib/libc.so.2.  Hence solib-absolute-prefix being set to
$QNX_TARGET/$CPU.  I'm just looking for better ways to get this all to work
together with a minimum of fuss for the end user.

cheers,

Kris



More information about the Gdb mailing list