<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 --- - [LTO] Build of FreeBSD rtld(1) fails with undefined symbols"
   href="https://llvm.org/bugs/show_bug.cgi?id=28179">28179</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[LTO] Build of FreeBSD rtld(1) fails with undefined symbols
          </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>All
          </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>davide@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>$ sh blah.sh
undefined symbol: __stack_chk_fail
undefined symbol: __libc_sigaction in
./home/buildbot/obj/usr/home/buildbot/freebsd/tmp/usr/lib/libc_pic.a(abort.So)

$ ~/work/llvm/build-release/bin/llvm-nm -print-armap libc_pic.a  |grep
__stack_chk_fail
__stack_chk_fail in stack_protector.So
---------------- T __stack_chk_fail

$ ~/work/llvm/build-release/bin/llvm-nm -print-armap libc_pic.a  |grep
__libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction
---------------- T __libc_sigaction
                 U __libc_sigaction
                 U __libc_sigaction

Notably, __libc_sigaction doesn't show up in the armap.
It is defined in sigaction.So
sigaction.So:
                 U __libc_interposing
---------------- T __libc_sigaction
---------------- T __sigaction</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>