---------- Forwarded message ----------
From:
chau johnthan <address@hidden>
Date: Sun, Aug 16, 2009 at 3:45 PM
Subject: gas bug?
To:
address@hidden,
address@hidden,
address@hidden,
address@hidden,
address@hidden
Hello,
thanks for your great work, honestly! my humble appreciation for this. i have been used binutils(arm) quiet a while.
i am using
2.18.50.1/slackware.
but I just found that there must be some wrong doings out there, this can cause some serious problem, as you know,
if ppl don't pay attention to it.
i have read the arm-dis.c roughly. openocd arm-disassembler.c as well, but i think they are supposed to be correct.
i have compiled my source.S both with gnu arm-elf-gcc and the gas. they give me the same output with regard to the
following.
arm-elf-objdump (gnu dis-assembler)
110: e92d001e push {r1, r2, r3, r4}
114: e8bd001e pop {r1, r2, r3, r4}
118: e82d001e stmda r13!, {r1, r2, r3, r4}
11c: e9bd001e ldmib r13!, {r1, r2, r3, r4}
120: e9ad001e stmib r13!, {r1, r2, r3, r4}
124: e83d001e ldmda r13!, {r1, r2, r3, r4}
128: e8ad001e stmia r13!, {r1, r2, r3, r4}
12c: e93d001e ldmdb r13!, {r1, r2, r3, r4}
130: e8ad001e stmia r13!, {r1, r2, r3, r4}
134: e8bd001e pop {r1, r2, r3, r4}
138: e9ad001e stmib r13!, {r1, r2, r3, r4}
13c: e9bd001e ldmib r13!, {r1, r2, r3, r4}
140: e82d001e stmda r13!, {r1, r2, r3, r4}
144: e83d001e ldmda r13!, {r1, r2, r3, r4}
148: e92d001e push {r1, r2, r3, r4}
14c: e93d001e ldmdb r13!, {r1, r2, r3, r4}
openocd: armv4_5 disassemble 0x110 0xxx
110 0xe92d001e STMDB r13!, {r1, r2, r3, r4}
114 0xe8bd001e LDM r13!, {r1, r2, r3, r4}
118 0xe82d001e STMDA r13!, {r1, r2, r3, r4}
11c 0xe9bd001e LDMIB r13!, {r1, r2, r3, r4}
120 0xe9ad001e STMIB r13!, {r1, r2, r3, r4}
124 0xe83d001e LDMDA r13!, {r1, r2, r3, r4}
128 0xe8ad001e STM r13!, {r1, r2, r3, r4}
12c 0xe93d001e LDMDB r13!, {r1, r2, r3, r4}
130 0xe8ad001e STM r13!, {r1, r2, r3, r4}
134 0xe8bd001e LDM r13!, {r1, r2, r3, r4}
138 0xe9ad001e STMIB r13!, {r1, r2, r3, r4}
13c 0xe9bd001e LDMIB r13!, {r1, r2, r3, r4}
140 0xe82d001e STMDA r13!, {r1, r2, r3, r4}
144 0xe83d001e LDMDA r13!, {r1, r2, r3, r4}
148 0xe92d001e STMDB r13!, {r1, r2, r3, r4}
14c 0xe93d001e LDMDB r13!, {r1, r2, r3, r4}
my assembly source code is:
stmfd sp!, {r1-r4}
ldmfd sp!, {r1-r4}
stmed sp!, {r1-r4}
ldmed sp!, {r1-r4}
stmfa sp!, {r1-r4}
ldmfa sp!, {r1-r4}
stmea sp!, {r1-r4}
ldmea sp!, {r1-r4}
stmia sp!, {r1-r4}
ldmia sp!, {r1-r4}
stmib sp!, {r1-r4}
ldmib sp!, {r1-r4}
stmda sp!, {r1-r4}
ldmda sp!, {r1-r4}
stmdb sp!, {r1-r4}
ldmdb sp!, {r1-r4}
have a good day~
Johnthan
2009-8-17