DT_NEEDED
Bharadwaj Yadavalli
sby@ives.lkg.dec.com
Fri May 18 08:51:00 GMT 2001
On Fri May 18 11:39:11 2001 Mark Kettenis <kettenis@science.uva.nl> wrote :
> >
> > gcc -L/full/path/to -shared -o libfoo.so foo.c -la -lb
> >
> > but got the full path of liba.so and libb.so listed in the dependency
> > list of libfoo.so.
>
> Are you sure that the second example does indeed encode the full
> pathname? I just did something similar with GNU ld (a recent CVS version) on
> Solaris and it seems to work for me, that is, the full pathname isn't
> encoded in the DT_NEEDED entry.
As you may have noticed, I have corrected myself in an earlier
mail sent to the binutils list as I found that the linker behaves
correctly using the command-line args. -L and -l. I erred in
my previous tests.
Sorry about the confusion.
Regards,
Bharadwaj
More information about the Binutils
mailing list