This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Is anyone testing for a (cross-) target (board) with dynlinking?
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Wed, 13 Feb 2008 14:44:06 -0500
- Subject: Re: Is anyone testing for a (cross-) target (board) with dynlinking?
- References: <20080212182939.GA22210@caradoc.them.org> <200802130053.m1D0rjkq012117@ignucius.se.axis.com>
On Wed, Feb 13, 2008 at 01:53:45AM +0100, Hans-Peter Nilsson wrote:
> > Date: Tue, 12 Feb 2008 13:29:39 -0500
> > From: Daniel Jacobowitz <drow@false.org>
>
> > On Tue, Feb 12, 2008 at 07:20:52PM +0100, Hans-Peter Nilsson wrote:
> > > > Date: Tue, 12 Feb 2008 13:16:27 -0500
> > > > From: Daniel Jacobowitz <drow@false.org>
> > >
> > > > Just for completeness: -rpath is
> > > > only used at runtime, it doesn't even have to be a Unix path.
> > >
> > > Incorrect; -rpath is used at both link and runtime.
> >
> > Yes, I was slightly mistaken. The manual says "Searching -rpath in
> > this way is only supported by native linkers and cross linkers which
> > have been configured with the --with-sysroot option."
>
> The "this way" is ambiguous. What exactly does it refer to?
> I can't tell!
"at all", in context.
> I didn't configure with --with-sysroot, and the -rpath entry
> mentions (truthfully) that it is followed for both link and
> runtime, no exceptions or special cases.
My copy of the man page defers to -rpath-link for a description of
how -rpath is used at link time; I suspect it's just unclear.
LD searches rpath if USE_LIBPATH. That is set for native and
sysrooted toolchains only. Search for command_line.rpath in
emultempl/elf32.em.
I don't know how you have a linker that does otherwise, but
I'd be curious to learn how.
--
Daniel Jacobowitz
CodeSourcery