<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - foo@v1 and foo@@v1 aren't handled properly"
   href="https://bugs.llvm.org/show_bug.cgi?id=48361">bug 48361</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Assignee</td>
           <td>unassignedbugs@nondot.org
           </td>
           <td>i@maskray.me
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - foo@v1 and foo@@v1 aren't handled properly"
   href="https://bugs.llvm.org/show_bug.cgi?id=48361#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - foo@v1 and foo@@v1 aren't handled properly"
   href="https://bugs.llvm.org/show_bug.cgi?id=48361">bug 48361</a>
              from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
        <pre>Fixed by <a href="https://reviews.llvm.org/D92259">https://reviews.llvm.org/D92259</a> (the title is not generic: actually
foo@@v1 and defined foo@v1 are also merged)

cc -o x main.o libfoo.so -Wl,-R,. -fuse-ld=lld; ./x => works

The resolution in the thread
<a href="https://sourceware.org/pipermail/binutils/2020-December/114400.html">https://sourceware.org/pipermail/binutils/2020-December/114400.html</a> is that
weak foo@@v1 and strong foo@v1 is treated as the same symbol. @@ is a separate
attribute which can decorate the symbol, while STB_GLOBAL prevails STB_WEAK as
usual.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>