From 8bb7fcac75daf9aa42de151ac655ef14645dad82 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 11 Feb 2006 04:29:52 +0000 Subject: Joseph S. Myers writes: This patch fixes some of the ARM EABI code to be interworking-safe, using bx where appropriate. (This code went in around the same time as the Thumb patches, hence not being fixed by those patches.) --- libc/sysdeps/linux/arm/syscall-eabi.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/arm/syscall-eabi.S') diff --git a/libc/sysdeps/linux/arm/syscall-eabi.S b/libc/sysdeps/linux/arm/syscall-eabi.S index 761051754..efc30690c 100644 --- a/libc/sysdeps/linux/arm/syscall-eabi.S +++ b/libc/sysdeps/linux/arm/syscall-eabi.S @@ -37,7 +37,11 @@ syscall: swi 0x0 ldmfd sp!, {r4, r5, r6, r7} cmn r0, #4096 +#if defined(__USE_BX__) + bxcc lr +#else movcc pc, lr +#endif b __syscall_error .size syscall,.-syscall -- cgit v1.2.3