<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - some vtable symbol refs use GOT despite hidden visibility"
   href="https://bugs.llvm.org/show_bug.cgi?id=35022">35022</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>some vtable symbol refs use GOT despite hidden visibility
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>roland@hack.frob.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, phosek@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The attached input file starts with:
  #pragma GCC visibility push(hidden)
so all definitions and all external references should be treated as if they had
individual __attribute__((visibility("hidden"))).  Hence there should be no GOT
references.

However, it generates a GOT reference for _ZTV21BlockingPortAllocator, a C++
vtable symbol.

In the attached .ll file, the symbol is declared:
  @_ZTV21BlockingPortAllocator = external unnamed_addr constant { [6 x i8*] }

I think this is where "hidden" is missing, so it appears to be a Clang issue
rather than a backend issue.

The test case is for x86-64 but I'm having the same issue on aarch64 too.</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>