summaryrefslogtreecommitdiff
path: root/libc/string/arm/strncmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/arm/strncmp.S')
-rw-r--r--libc/string/arm/strncmp.S11
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/string/arm/strncmp.S b/libc/string/arm/strncmp.S
index 46f5f5092..94e93f7df 100644
--- a/libc/string/arm/strncmp.S
+++ b/libc/string/arm/strncmp.S
@@ -29,12 +29,15 @@
* by Erik Andersen <andersen@codepoet.org>
*/
-.text
.global strncmp
-.type strncmp,%function
+.set strncmp,__strncmp
+.text
+.global __strncmp
+.hidden __strncmp
+.type __strncmp,%function
.align 4
-strncmp:
+__strncmp:
/* if (len == 0) return 0 */
cmp r2, #0
moveq r0, #0
@@ -52,3 +55,5 @@ strncmp:
beq 1b
sub r0, r2, r3
mov pc, lr
+
+.size __strncmp,.-__strncmp