[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.
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, (continued)
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, tmsriram at google dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, tmsriram at google dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/21
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld,
hjl.tools at gmail dot com <=
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, tmsriram at google dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, hjl.tools at gmail dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, tmsriram at google dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/22
- [Bug gold/18703] Symbol version and Version script incompatibility with BFD ld, ccoutant at gmail dot com, 2015/07/23