bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/10288] "objdump -D --target=binary -m arm7tdmi" shows non-


From: chris at seberino dot org
Subject: [Bug binutils/10288] "objdump -D --target=binary -m arm7tdmi" shows non-ARM7TDMI instructions
Date: 22 Jun 2009 19:43:50 -0000

------- Additional Comments From chris at seberino dot org  2009-06-22 19:43 
-------
The undefined fix is very nice.  I did find some issues and have appended a
Python script to reproduce...


#==========The Python script============================================

import struct
raw_binary = open("raw_binary", "w")
raw_binary.write(struct.pack("L", 0x4c585ee5))
raw_binary.write(struct.pack("L", 0x01a23597))
raw_binary.write(struct.pack("L", 0x3d9da24e))

#==========The Python script output=====================================

% objdump -D --target=binary -m arm7tdmi raw_binary

raw_binary:     file format binary


Disassembly of section .data:

00000000 <.data>:
   0:   4c585ee5        mrrcmi  14, 14, r5, r8, cr5
   4:   01a23597        strbeq  r3, [r2, r7]!
   8:   3d9da24e        lfmcc   f2, 1, [sp, #312]

#==================Comments======================================

1. mrrcmi is an extended DSP instruction that doesn't belong on ARM7TDMI right?

2. According to my ARM ref manual, strb needs to have bits 4-11 zeroed out which
01a23597 doesn't.  Should this be undefined instead?

3. I can't find lfm in my ARM ref manual.  Googling reveal it to be a floating
point multiple load instruction.  This may be right but I'm not sure since it
isn't documented in ARM book I have.

cs


-- 


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

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