<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 --- - lld-linked libc++.so, libc++abi.so has undefined _GLOBAL_OFFSET_TABLE_ symbol"
   href="https://llvm.org/bugs/show_bug.cgi?id=26705">26705</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld-linked libc++.so, libc++abi.so has undefined _GLOBAL_OFFSET_TABLE_ symbol
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>linked with lld:

% nm build-lld-selfhost2/lib/libc++abi.so | grep 'GLOBAL_OFFSET'
                 U _GLOBAL_OFFSET_TABLE_

with gnu ld:

% nm build-nodebug/lib/libc++abi.so | grep 'GLOBAL_OFFSET'      
00000000002592e0 a _GLOBAL_OFFSET_TABLE_

and link failures are observed in 'check-libcxxabi'

/usr/bin/ld:
/tank/emaste/src/llvm/build-lld-selfhost2/projects/libcxxabi/test/Output/catch_pointer_reference.pass.cpp.exe:
hidden symbol `_GLOBAL_OFFSET_TABLE_' in /usr/lib/crt1.o is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
CC: error: linker command failed with exit code 1 (use -v to see invocation)</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>