This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for default version and archive


"H . J . Lu" <hjl@valinux.com> writes:

> Please don't drag it into the binutils discussion.

I do not.
 
> As it stands now, when the linker sees a foo@@ver1 in an archive, it
> will only check foo.

Right.  Since versioning information is not available in archives this
is correct.

> My patch will add the checking to foo@ver1. It is not an unexpected
> behavior since the linker will resolve references of foo@ver1 to
> foo@@ver1. Please tell me what is wrong with it. If you think it is
> wrong, please show me a testcase.

The point is that this is not how the versioning stuff is designed.
Nobody has thought about the consequences to the end.  Introducing
*might* cause problems and then it's too late since some people might
even use this.  The situation where your patch could be useful cannot
appear in any situation unless you are doing something which is at
odds with the versioning in the first place.  Versions get intoduced
when building or linking with DSOs.  There are no archives you link
against.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]