ARM: Handle ARM_ALWAYS_BX in {add,sub}_n.S code.

This commit is contained in:
Roland McGrath 2013-03-13 09:51:37 -07:00
parent 9e1d4ac924
commit ccffb2a2db
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2013-03-13 Roland McGrath <roland@hack.frob.com>
* sysdeps/arm/add_n.S: Include <arm-features.h>.
[ARM_ALWAYS_BX]: Don't pop into pc.
* sysdeps/arm/arm-features.h: Add comment about ARM_ALWAYS_BX.
* sysdeps/arm/memcpy.S: Include <arm-features.h>.
[ARM_ALWAYS_BX]: Avoid pc as destination.

View File

@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
#include <arm-features.h>
.syntax unified
.text
@ -80,5 +81,10 @@ ENTRY (FUNC)
9:
RETC /* copy carry out */
#ifndef ARM_ALWAYS_BX
pop { r4, r5, r6, r7, r8, r10, pc }
#else
pop { r4, r5, r6, r7, r8, r10, lr }
bx lr
#endif
END (FUNC)