[PATCH] ARM: disallow ARM_THUMB for ARMv4 builds

Arnd Bergmann arnd at arndb.de
Fri Dec 16 13:51:08 PST 2016


On Friday, December 16, 2016 5:20:22 PM CET Ard Biesheuvel wrote:
> 
> Can't we use the old
> 
> tst lr, #1
> moveq pc, lr
> bx lr
> 
> trick? (where bx lr needs to be emitted as a plain opcode to hide it
> from the assembler)
> 

Yes, that should work around the specific problem in theory, but back
when Jonas tried it, it still didn't work. There may also be other
problems in that configuration.

	Arnd



More information about the linux-arm-kernel mailing list