From ded219589f184b296190aebcba56b57564f5f337 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Jan 2006 01:41:16 +0000 Subject: Khem Raj says: add support for using BX instruction for THUMB aware architectures --- libc/string/arm/strlen.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc/string/arm/strlen.S') diff --git a/libc/string/arm/strlen.S b/libc/string/arm/strlen.S index b7af3480d..5b4b02e17 100644 --- a/libc/string/arm/strlen.S +++ b/libc/string/arm/strlen.S @@ -75,7 +75,11 @@ Llastword: @ drop through to here once we find a tstne r2, $0x00ff0000 @ (if first three all non-zero, 4th addne r0, r0, $1 @ must be zero) #endif - mov pc,lr +#if defined(__USE_BX__) + bx lr +#else + mov pc,lr +#endif .size strlen,.-strlen -- cgit v1.2.3