OSDN Git Service

Supply '__bzero' with 'bzero' as just a weak alias (since it is not SuSv3)
authorEric Andersen <andersen@codepoet.org>
Thu, 18 Mar 2004 11:38:02 +0000 (11:38 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 18 Mar 2004 11:38:02 +0000 (11:38 -0000)
libc/string/arm/bzero.S
libc/string/powerpc/string.c

index 52245a2..253b3c8 100644 (file)
  */
 
                .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
index 3248567..1835e6a 100644 (file)
@@ -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);
 }