summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/arm/bzero.S8
-rw-r--r--libc/string/powerpc/string.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/libc/string/arm/bzero.S b/libc/string/arm/bzero.S
index 52245a244..253b3c88b 100644
--- a/libc/string/arm/bzero.S
+++ b/libc/string/arm/bzero.S
@@ -38,11 +38,13 @@
*/
.text
- .global bzero;
- .type bzero,%function
+ .global __bzero;
+ .type __bzero,%function
.align 4; \
-bzero:
+__bzero:
mov r2, r1
mov r1, #0
b memset (PLT)
+
+.weak bzero ; bzero = __bzero
diff --git a/libc/string/powerpc/string.c b/libc/string/powerpc/string.c
index 32485670d..1835e6aa7 100644
--- a/libc/string/powerpc/string.c
+++ b/libc/string/powerpc/string.c
@@ -194,7 +194,8 @@ void *memset(void *to, int c, size_t n)
#endif
#ifdef L_bzero
-void bzero(void *s, size_t n)
+weak_alias(__bzero,bzero);
+void __bzero(void *s, size_t n)
{
(void)memset(s, 0, n);
}