Re: [PATCH] ARM: disallow ARM_THUMB for ARMv4 builds

From: Arnd Bergmann
Date: Fri Dec 16 2016 - 16:51:48 EST


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