<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65017>65017</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            different symbol versioning behaviour between LLD and GNU bfd ld
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kraj
      </td>
    </tr>
</table>

<pre>
    I am having an issue where lld does not accept a symbol like `xvz@@` in objects, it errors out

```
ld.lld: error: sv_lib_v2.o: symbol xyz@@ has undefined version
```

whereas GNU linker is happy to accept a symbol like that.

Second issue I also see is that behaviour is different if I remove the above symbol. It links the attachedf test fine though
but runtime behaviour is different.

```
% ./a.sh
Using LLD
v2 xyz
Usng BFD LD
v2 xyz
```
[test.zip](https://github.com/llvm/llvm-project/files/12447193/test.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU0Fv3CwQ_TX4MvosjPF6ffAh-VauVop6qXKOwIxtEhZWgJ1sfn2F7TZVlVaqhIDRoDfz3jxECHq0iC2p7kl1ysQcJ-fbFy-eM-nUrT2DuMAkFm1HEBZ0CDPC64QewRgFymEA6yKIvsdrBAHhdpHOgNEvCORA35Z3wmlaBwragpPP2MdA2P-gI6D3zgdwcyT0ROjdvh_ovtbQqNwYRcq77Xm6hOXJaPm0sNyt4Vbz7bbXgkkEmK3CQVtUsKAP2tlPwbd9JSQCfPn6CEbbF_SgA0zier1BdJ-Ti5OI-a8g37B3Vu0SnUGY4CAgJqT0FiQmHd28Yis9DOjRRtADnMHjxS0JE0HIdNsq5XCOa0NhS8Uo-gnVABFDhMQO4uTmcdo6kHMEP9uoL_iHavlfdCasgpywTuRhx3sMaewPD6ctXNgq8Z6yI9x3J_gs-TtwdZ_6zd_1lVQnwo5TjNdAyjvCOsK6UcdplnnvLoR1xiw_jv-u3iWzENYN2mAgrCsY53XRlIR1PxFZs1XJVFuqpmxEhm1xaMqC1g2vsqntEfkRi-bY18eqOVBa16pXPa_VUFTy2GS6ZZSV9MhqWvKKV3nDea3KmlKquBA9J5ziRWiTp7Zy58dsHXJ7qGhRZ0ZINGH9QYxZfN0cQBhLH8q3KxU5j4FwanSI4QMl6miw_bDCbq_dr0n7jylKjK-INk0DhFWrVeWgwKhs9qb9Z0nXJpOmK4nvAQAA__80eETu">