<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Create unique name for weak symbol on coff."
   href="https://llvm.org/bugs/show_bug.cgi?id=27896">27896</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Create unique name for weak symbol on coff.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rafael.espindola@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>david.majnemer@gmail.com, llvm-bugs@lists.llvm.org, rnk@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given
---------------------------
        .data
        .weak   a
a:
        .long   42
---------------------------

MC always creates a .weak.a.default. That means that given any two files that
define a "weak" symbol "a", there will be a link error (duplicated
.weak.a.default).

With gas one gets slightly more unique names. It looks like it uses the
previous global. Given

--------------------------
.global foobar
        .data
        .weak   a
a:
        .long   42
-------------------------
it produces .weak.a.foobar and given

-------------------------
.global zed
        .data
        .weak   a
a:
        .long   42
-------------------------
it produces .weak.a.zed.

I don't think how we get a more unique name is particularly important, just
that  we do.</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>