<html>
    <head>
      <base href="http://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 --- - [mach-o] Symbol offset not relevant in out-of-order nlists"
   href="http://llvm.org/bugs/show_bug.cgi?id=21655">21655</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[mach-o] Symbol offset not relevant in out-of-order nlists
          </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>release blocker
          </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>dmlamb@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In MachONormalizedFileBinaryReader.cpp at around ln432, the symtab nlists are
incorrectly assumed to be in-order from local to global to undefined. As a
result, relocations in MachONormalizedFileToAtoms.cpp at ln538 are improperly
assigned. The symbol index corresponds to whatever order the nlist is in, thus
all symbols should be parsed to the same array, rather than three disparate
ones. 

Symptoms shown are cstrings and other data relocations appear to work if viewed
in a Mach-o reader, they will just point to the wrong entry in that nlist. Keep
in mind for repro that it's entirely possible the nlist is in the right order,
given a small symtab.</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>