ARM: Fix clone code when built for Thumb.
commit6987b2d519f836926540d6fee1ad8840b29865bf
authorWill Newton <will.newton@linaro.org>
Thu, 29 Aug 2013 19:10:26 +0000 (29 20:10 +0100)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:37:59 +0000 (6 08:37 -0500)
tree0aaa864a6cd64e8443c55803b77e65f2a6e19f75
parent50219dba1e5108fd32de15b0533a6a53db0085ed
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.

(cherry picked from commit 6b06ac56cdfc9293908724e51e827534e97819aa)
(cherry picked from commit 4f2bcda964d4fff56855e0c66198c9bcb682ea1e)
NEWS
ports/ChangeLog.arm
ports/sysdeps/unix/sysv/linux/arm/clone.S