summaryrefslogtreecommitdiff
path: root/libc/string/arm/strcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/arm/strcmp.S')
-rw-r--r--libc/string/arm/strcmp.S6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/string/arm/strcmp.S b/libc/string/arm/strcmp.S
index cdc4ac469..89aa38874 100644
--- a/libc/string/arm/strcmp.S
+++ b/libc/string/arm/strcmp.S
@@ -44,7 +44,11 @@ strcmp:
cmpcs r2, r3
beq 1b
sub r0, r2, r3
- mov pc, lr
+#if defined(__USE_BX__)
+ bx lr
+#else
+ mov pc, lr
+#endif
.size strcmp,.-strcmp