Re: Why does solib_open do what it does?

Kris Warkentin
2003-06-18T20:19:29Z

> Daniel Jacobowitz wrote:
> > On Wed, Jun 18, 2003 at 11:41:02AM -0700, Michael Snyder wrote:
> >
> >>You don't think that gdb should honor LD_LIBRARY_PATH in native
> >>debugging, if it is set? Won't the linker-loader honor it?
> >>
> >>I'd be ready to agree that, if solib-search-path is set,
> >>it should override LD_LIBRARY_PATH. But if it isn't set...
> >
> >
> > As far as I'm concerned, the linker should always set the absolute
> > pathname, and we shouldn't be doing any of this junk.
>
> Well, but that is not in fact the case. For sure not on linux,
> and I don't think it is on solaris either.

Linkers can be funny that way. Things like the loader (in our case
ldqnx.so) don't have the full path but other libs do.

cheers,

Kris