summaryrefslogtreecommitdiff
path: root/libc/string/x86_64/strcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/x86_64/strcmp.S')
-rw-r--r--libc/string/x86_64/strcmp.S7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/string/x86_64/strcmp.S b/libc/string/x86_64/strcmp.S
index 0b401a773..f933c1156 100644
--- a/libc/string/x86_64/strcmp.S
+++ b/libc/string/x86_64/strcmp.S
@@ -22,7 +22,10 @@
#include "_glibc_inc.h"
.text
-ENTRY (BP_SYM (strcmp))
+.global strcmp
+.set strcmp,__strcmp
+.hidden __strcmp
+ENTRY (BP_SYM (__strcmp))
L(oop): movb (%rdi), %al
cmpb (%rsi), %al
jne L(neq)
@@ -38,4 +41,4 @@ L(neq): movl $1, %eax
movl $-1, %ecx
cmovbl %ecx, %eax
ret
-END (BP_SYM (strcmp))
+END (BP_SYM (__strcmp))