summaryrefslogtreecommitdiff
path: root/libc/string/arm/strlen.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-31 01:41:16 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-31 01:41:16 +0000
commitded219589f184b296190aebcba56b57564f5f337 (patch)
treee6bb727254e9bf591aad23c7c4ea1fdecf408cbf /libc/string/arm/strlen.S
parent5093fcf1205133dff7181b5d5d12da8db6a724a9 (diff)
Khem Raj says:
add support for using BX instruction for THUMB aware architectures
Diffstat (limited to 'libc/string/arm/strlen.S')
-rw-r--r--libc/string/arm/strlen.S6
1 files changed, 5 insertions, 1 deletions
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