bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/14616] New: Disassembling unknown thumb opcode should use


From: suckfish at ihug dot co.nz
Subject: [Bug binutils/14616] New: Disassembling unknown thumb opcode should use 2 bytes.
Date: Mon, 24 Sep 2012 23:09:13 +0000


http://sourceware.org/bugzilla/show_bug.cgi?id=14616



             Bug #: 14616

           Summary: Disassembling unknown thumb opcode should use 2 bytes.

           Product: binutils

           Version: 2.22

            Status: NEW

          Severity: normal

          Priority: P2

         Component: binutils

        AssignedTo: address@hidden

        ReportedBy: address@hidden

    Classification: Unclassified





When disassembling arm thumb code, objdump assumes an unknown opcode takes 4

bytes.  It would be much better if it only took 2, as the instructions are only

2-byte aligned.



E.g., disassembling a binary block with an entry point at 0x10403e00 I get:



10403dfe:    ebd3 b570             ; <UNDEFINED> instruction: 0xebd3b570

10403e02:    4c1c          ldr    r4, [pc, #112]    ; (0x10403e74)



Much better output would be:



10403dfe:    ebd3             ; <UNDEFINED> instruction: 0xebd3

10403e00:       b570   push    {r4, r5, r6, lr}

10403e02:    4c1c          ldr    r4, [pc, #112]    ; (0x10403e74)



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

------- You are receiving this mail because: -------

You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]