[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system/972: ld picks shared libraries in wrong order
The following reply was made to PR system/972; it has been noted by GNATS.
Subject: Re: system/972: ld picks shared libraries in wrong order
Date: 28 Dec 1999 05:02:40 +0100
So what's the status of this? Nothing happening?
What's consensus on how ld should behave? Should it:
1. pick the shared library with the highest version found anywhere in
the list of directories
2. pick the shared library with the highest version found in the first
directory that contains the shared library
(or does nobody care?)
My opinion is of course, 2). Doing 1) causes the system just to have
one name-space for shared libraries and does not allow me to create my
own version of a shared library (without giving it a higher version
that the system one - which I might not know). And that's what the
SunOS ld and all the other ld:s that I've met do.
And the reason that I'm asking this question is that looking at the
CVS history of src/gnu/usr.bin/ld/shlib.c shows changes back and forth
between 1 and 2.
I care and will have no problem submitting a patch to get it to do the
right behaviour, but I don't see any point in doing that if we cannot
agree on what's the right behaviour.