mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
ARM: Handle ARM_ALWAYS_BX in {add,sub}_n.S code.
This commit is contained in:
parent
9e1d4ac924
commit
ccffb2a2db
ports
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user