bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/10924] Bug in objdump when disassembling raw armv4t binari


From: chris at seberino dot org
Subject: [Bug binutils/10924] Bug in objdump when disassembling raw armv4t binaries
Date: 10 Nov 2009 17:31:38 -0000

------- Additional Comments From chris at seberino dot org  2009-11-10 17:31 
-------
Subject: Re:  Bug in objdump when disassembling raw
        armv4t binaries

On Tue, Nov 10, 2009 at 10:32:26AM -0000, nickc at redhat dot com wrote:
>   I am planning on applying the uploaded patch to address this issue, but I
> would like your feedback on the new behaviour.  With the patch applied your
> testcase will disassemble as:
>
>   00000000 <.text>:
>      0:   002000b0        strheq  r0, [r0], -r0 <UNPREDICTABLE>
>
> I feel that displaying the disassembled instruction is correct, even though it
> is unpredictable, since it is the behaviour of the instruction that cannot be
> specified rather than the entire instruction being undefined.

Sounds good.  I would just suggest making the warning a comment so that
the output of objdump still can be run through gas.

e.g.

   00000000 <.text>:
       0:   002000b0        strheq  r0, [r0], -r0 ; UNPREDICTABLE

On another note, do you have any links explaining the hows and whys of
UNPREDICTABLEs?  How did you know "it is the behaviour of the instruction that
cannot be specified rather than the entire instruction being undefined" ?

cs


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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