bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18703] Symbol version and Version script incompatibility with


From: hjl.tools at gmail dot com
Subject: [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld
Date: Wed, 22 Jul 2015 02:13:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18703

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Cary Coutant from comment #10)
> 
> In this example, "foo" is both unversioned and versioned. In response
> to the unversioned one, gold is creating a default version, as
> directed by the linker script. If "address@hidden" were the only version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Linker script only specifies a version of VERS_1.1 and input file
has VERS_1.1 as the non-default version.  Linker shouldn't change
VERS_1.1 from non-default to default.

> of "foo" in this file, gold would not make it a default version.
> 
> If you don't want a default version, get rid of the first,
> unversioned, "foo", and gold will do what you expect.
> 
> I've played around with a bunch of different combinations, and I can't
> even begin to unravel the logic behind Gnu ld's behavior when there
> are multiple instances of versioned and unversioned symbols. I have no
> desire to try to reproduce its behavior beyond what's described in the
> documentation.

The documentation can have some improvements.  But ld.bfd behavior is
well-defined as shown by testcases in ld/testsuite/ld-elfvers.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]