Re: GAS for ARM: does not support BX instruction for ARMv3 and lower

2014-12-23 Thread Nicholas Clifton
Hi Sergey, I try to compile program for ARMv3 or ARMv2 CPU target using GCC (4.8.x). It produces assembler code with BX LR instructions (return from function) which GAS (2.23.2) cannot compile: Error: selected processor does not support ARM mode `bx lr' This is really a gcc bug. ARM archi

GAS for ARM: does not support BX instruction for ARMv3 and lower

2014-10-06 Thread Sergey Belyashov
I try to compile program for ARMv3 or ARMv2 CPU target using GCC (4.8.x). It produces assembler code with BX LR instructions (return from function) which GAS (2.23.2) cannot compile: Error: selected processor does not support ARM mode `bx lr' It is work for ARMv4 mode and greater (ARMv4 has no B