<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 --- - llvm-objdump won't disassemble the whole text section"
   href="https://llvm.org/bugs/show_bug.cgi?id=31752">31752</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-objdump won't disassemble the whole text section
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hanauska@equinux.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>Recently I wanted to disassemble the text section of a mach-o binary. The text
section is almost 4 MB in size, but otool only disassembles the last 27 KB of
it. It starts disassembling at the first known symbol and as the binary was
heavily stripped and optimized, there were almost no symbols in the final
binary. I reported that bug to Apple and here is what they said:

<span class="quote">> Engineering has determined that this issue behaves as intended 
> based on the following information: 

> The implementation of otool(1) changed in Xcode 8 to be based
> on llvm-objdump(1) from the old otool-classic(1), which is
> still on the system.</span >
>
<span class="quote">> For the llvm community, the current behavior of starting
> disassembly from the first known symbol is the behavior the
> llvm community desires.</span >

So basically Apple points with the finger on you and says it's your fault.
Well, I am part of that community and wanted to let you know that this is
absolutely undesired behavior. I don't understand that behavior and I don't
want it either. Using otool-classic the whole section is disassembled which
saved my day but I don't want to reply that Apple will keep that one around for
ever.</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>