Following compiles wrong:
t.s:
.syntax unified
.text
nop
arm-none-eabi -march=armv4t t.s
=> opcode 0xbf00 (thumb-2) instead of 0x46c0 (mov r8,r8)
Without ".syntax unified" the correct code is generated.
--
Summary: ARM:Wrong (thumb-2) opcode for "nop" in UAL mode
Product
Hi,
gas 2.18.50 (CodeSourcery 2008q3) produces the Thumb-2 opcode for nop
even if v4t is selected:
.syntax unified
.text
nop
Assembled with:
arm-none-eabi-as -march=armv4t t.S -o t.o
Objectcode is 0xbf00 instead of 0x46c0 (mov r8,r8).
Regards,
--
42Bastian Schick
-