summaryrefslogtreecommitdiff
path: root/libc/string/arm/memcmp.S
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-11 23:59:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-11 23:59:19 +0000
commit925220a4fecf635d106989aa4a56d80152777ba3 (patch)
treed913d7fa283471f1c3e03feaeb135e36b02d05cb /libc/string/arm/memcmp.S
parent0b09d1e5ed195662e8df3246ca4cc450947cc0f8 (diff)
Add hidden versions, add missing .size
Diffstat (limited to 'libc/string/arm/memcmp.S')
-rw-r--r--libc/string/arm/memcmp.S10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/string/arm/memcmp.S b/libc/string/arm/memcmp.S
index 6f7a064bd..bdb5aca18 100644
--- a/libc/string/arm/memcmp.S
+++ b/libc/string/arm/memcmp.S
@@ -30,12 +30,15 @@
*/
-.text
.global memcmp
-.type memcmp,%function
+.set memcmp,__memcmp
+.text
+.global __memcmp
+.hidden __memcmp
+.type __memcmp,%function
.align 4
-memcmp:
+__memcmp:
/* if ((len - 1) < 0) return 0 */
subs r2, r2, #1
movmi r0, #0
@@ -52,4 +55,5 @@ memcmp:
sub r0, r2, r3
mov pc, lr
+.size __memcmp,.-__memcmp
.weak bcmp ; bcmp = memcmp