<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 - llvm-objdump: wrong output for big endian ARM binaries"
   href="https://bugs.llvm.org/show_bug.cgi?id=38721">38721</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-objdump: wrong output for big endian ARM binaries
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>llvm-objdump
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>japaricious@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20777" name="attach_20777" title="File used to compare llvm-objdump to GNU objdump">attachment 20777</a> <a href="attachment.cgi?id=20777&action=edit" title="File used to compare llvm-objdump to GNU objdump">[details]</a></span>
File used to compare llvm-objdump to GNU objdump

LLVM -
<a href="https://github.com/llvm-mirror/llvm/commit/24535f7c19077d02b193bc6225a667f963901eb4">https://github.com/llvm-mirror/llvm/commit/24535f7c19077d02b193bc6225a667f963901eb4</a>

```
$ llvm-objdump -d foo.o
foo.o:  file format ELF32-arm-big

subsection length greater than section length
subsection length greater than section length
Disassembly of section .text.foo:
foo:
       0:       e0 81 00 00     andeq   r8, r0, r0, ror #3
       4:       e1 2f ff 1e     cdpne   p15, #15, c2, c15, c1, #7
```

GNU objdump (GNU Binutils) 2.31.1

```
$ arm-none-eabi-objdump -d foo.o
foo.o:     file format elf32-bigarm

Disassembly of section .text.foo:

00000000 <foo>:
   0:   e0810000        add     r0, r1, r0
   4:   e12fff1e        bx      lr
```

The foo.o file has been attached</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>