[PATCH] arm: fix compilation of entry-common.S for older CPUs

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Sep 18 12:27:11 EDT 2009


Hello,

On Fri, Sep 18, 2009 at 06:55:45PM +0400, Dmitry Artamonow wrote:
> Commit 181f817eaaca4c1f introduced some new code to entry-common.S
> Sadly, this new code uses 'bx' instruction which is available only on
> ARMv5 and higher CPUs. This causes following compilation errors when
> building kernel for StrongARM (ARMv4):
> 
> arch/arm/kernel/entry-common.S: Assembler messages:
> arch/arm/kernel/entry-common.S:129: Error: selected processor does not
>  support `bx ip'
> arch/arm/kernel/entry-common.S:138: Error: selected processor does not
>  support `bx ip'
> 
> Fix these errors by using 'mov pc' instead of 'bx'.
> 
> Signed-off-by: Dmitry Artamonow <mad_soft at inbox.ru>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

I wonder if newer glibc's have the same problem as the code is taken
more or less from there ...

Thanks
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list