<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 --- - ELF executable generated with lld crashes when reading DYNAMIC link_map on x86-64"
   href="https://llvm.org/bugs/show_bug.cgi?id=28040">28040</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ELF executable generated with lld crashes when reading DYNAMIC link_map on x86-64
          </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>Windows NT
          </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>ck@remobjects.com
          </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>I'm having a curious issue with LLD/x86_64 linux/elf (Ubuntu 14.04); Where
the l_addr of the link_map is invalid when linked with lld, but is fine with
gnu ld.

I'm using the libgc (boehm) code which when initializing reads the
DYNAMIC/DEBUG link_map data, and crashes because the l_addr field has value
out of readable memory. The strange this is that it happens only on some
linux systems even though they're the same ubuntu version. This is implemented
in a custom language but . libgc.a is basically a clang compiled version of the
a files.

it crashes here:
<a href="https://github.com/ivmai/bdwgc/blob/a126fd4cf264d740c2824071022e12c307e498de/dyn_load.c#L729">https://github.com/ivmai/bdwgc/blob/a126fd4cf264d740c2824071022e12c307e498de/dyn_load.c#L729</a></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>