<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 - lld with --dynamic-list breaks FreeBSD"
   href="https://bugs.llvm.org/show_bug.cgi?id=32703">32703</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld with --dynamic-list breaks FreeBSD
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>ELF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andrew@fubar.geek.nz
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dimitry@andric.com, emaste@freebsd.org, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When porting the sanitizers to FreeBSD/arm64 I found the tests failed to run
with the following error:

/lib/libc.so.7: Undefined symbol "__progname"

I tracked this down to the use of --dynamic-list with lld. When I remove these
arguments from the linker command line the test runs without the error.
Building with ld.bfd, but with --dynamic-list also runs correctly.

It seems the issue is lld fails to put __progname in the .dynsym section. This
comes from crt1.o, and libc expects this to be exported from the main program.</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>