ARM: Fix clone code when built for Thumb.
commit6b06ac56cdfc9293908724e51e827534e97819aa
authorWill Newton <will.newton@linaro.org>
Thu, 29 Aug 2013 19:10:26 +0000 (29 20:10 +0100)
committerWill Newton <will.newton@linaro.org>
Fri, 30 Aug 2013 09:50:25 +0000 (30 10:50 +0100)
tree6b826b8afcd2477624425895af76b24da9d1cd10
parent2601bc1860c33653f2d402b871f1211d460aa350
ARM: Fix clone code when built for Thumb.

The mov lr, pc instruction will lose the Thumb bit from the return address
so use blx lr instead.

ports/ChangeLog.arm:

2013-08-30  Will Newton  <will.newton@linaro.org>

[BZ #15909]
* sysdeps/unix/sysv/linux/arm/clone.S (__clone): Use blx
instead of mov lr, pc.
NEWS
ports/ChangeLog.arm
ports/sysdeps/unix/sysv/linux/arm/clone.S