[llvm-bugs] [Bug 38721] New: llvm-objdump: wrong output for big endian ARM binaries

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 27 07:40:51 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38721

            Bug ID: 38721
           Summary: llvm-objdump: wrong output for big endian ARM binaries
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-objdump
          Assignee: unassignedbugs at nondot.org
          Reporter: japaricious at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20777
  --> https://bugs.llvm.org/attachment.cgi?id=20777&action=edit
File used to compare llvm-objdump to GNU objdump

LLVM -
https://github.com/llvm-mirror/llvm/commit/24535f7c19077d02b193bc6225a667f963901eb4

```
$ 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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180827/0980b03d/attachment.html>


More information about the llvm-bugs mailing list