------- 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.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to