summaryrefslogtreecommitdiff
path: root/libc/string/x86_64/strlen.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/x86_64/strlen.S')
-rw-r--r--libc/string/x86_64/strlen.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/string/x86_64/strlen.S b/libc/string/x86_64/strlen.S
index 36b63031e..ab25515f8 100644
--- a/libc/string/x86_64/strlen.S
+++ b/libc/string/x86_64/strlen.S
@@ -22,7 +22,10 @@
.text
-ENTRY (strlen)
+.global strlen
+.set strlen,__strlen
+.hidden __strlen
+ENTRY (__strlen)
movq %rdi, %rcx /* Duplicate source pointer. */
andl $7, %ecx /* mask alignment bits */
movq %rdi, %rax /* duplicate destination. */
@@ -132,4 +135,4 @@ ENTRY (strlen)
2:
subq %rdi, %rax /* compute difference to string start */
ret
-END (strlen)
+END (__strlen)