.align 2
+.weak _memchr
ENTRY(_memchr)
P0 = R0; // P0 = address
P2 = R2; // P2 = count
.align 2
+.weak _memcmp
ENTRY(_memcmp)
I1 = P3;
P0 = R0; /* P0 = s1 address */
libc_hidden_def (memcmp)
#ifdef __UCLIBC_SUSV3_LEGACY__
-strong_alias (memcmp,bcmp)
+weak_alias (memcmp,bcmp)
#endif
.align 2
-/* We have to bypass the libc-symbols.h machinery to make sure we get
- * a weak symbol for memcpy (some crummy gcc tests want to redefine it).
- */
-.global ___GI_memcpy
-.type ___GI_memcpy, STT_FUNC
-___GI_memcpy:
+.weak _memcpy
+ENTRY(_memcpy)
[--SP] = P3;
P0 = R0; /* P0 = To address */
P3 = R1; /* P3 = From Address */
P3 = [SP++];
RTS;
-.size ___GI_memcpy,.-___GI_memcpy
-.hidden ___GI_memcpy
-.weak _memcpy
-.set _memcpy,___GI_memcpy
+.size _memcpy,.-_memcpy
+
+libc_hidden_def (memcpy)
.align 2
- /* We have to bypass the libc-symbols.h machinery to make sure we get
- a weak symbol for memcpy (some crummy gcc tests want to redefine
- it). */
-.global ___GI_memmove
-.type ___GI_memmove, STT_FUNC
-___GI_memmove:
+.weak _memmove
+ENTRY(_memmove)
I1 = P3;
P0 = R0; /* P0 = To address */
P3 = R1; /* P3 = From Address */
P3 = I1;
RTS;
-.size ___GI_memmove,.-___GI_memmove
+.size _memmove,.-_memmove
-.hidden ___GI_memmove
-.weak _memmove
-.set _memmove,___GI_memmove
+libc_hidden_def (memmove)
.align 2
-/* We have to bypass the libc-symbols.h machinery to make sure we get
- * a weak symbol for memcpy (some crummy gcc tests want to redefine it).
- */
-.global ___GI_memset
-.type ___GI_memset, STT_FUNC
-___GI_memset:
+.weak _memset
+ENTRY(_memset)
P0 = R0 ; /* P0 = address */
P2 = R2 ; /* P2 = count */
R3 = R0 + R2; /* end */
B[P0++] = R1;
JUMP .Laligned;
-.size ___GI_memset,.-___GI_memset
+.size _memset,.-_memset
-.hidden ___GI_memset
-.weak _memset
-.set _memset,___GI_memset
+libc_hidden_def (memset)
.align 2
+.weak _strcmp
ENTRY(_strcmp)
[--sp] = (R7:4);
p1 = r0;
libc_hidden_def (strcmp)
#ifndef __UCLIBC_HAS_LOCALE__
-strong_alias (strcmp,strcoll)
+weak_alias (strcmp,strcoll)
libc_hidden_def (strcoll)
#endif
return 0;
}
-libc_hidden_def(memchr)
+libc_hidden_weak(memchr)
return 0;
}
-libc_hidden_def(memcmp)
+libc_hidden_weak(memcmp)
#ifdef __UCLIBC_SUSV3_LEGACY__
strong_alias(memcmp,bcmp)
#endif
return dstpp;
}
-libc_hidden_def(memcpy)
+libc_hidden_weak(memcpy)
return (dest);
}
-libc_hidden_def(memmove)
+libc_hidden_weak(memmove)
memcpy(dstpp, srcpp, len);
return (void *)(((char *)dstpp) + len);
}
-libc_hidden_def(mempcpy)
+libc_hidden_weak(mempcpy)
#endif
return dstpp;
}
-libc_hidden_def(memset)
+libc_hidden_weak(memset)
return NULL;
}
-libc_hidden_def(strchr)
+libc_hidden_weak(strchr)
#ifdef __UCLIBC_SUSV3_LEGACY__
-strong_alias(strchr,index)
+weak_alias(strchr,index)
#endif
return c1 - c2;
}
-libc_hidden_def(strcmp)
+libc_hidden_weak(strcmp)
#ifndef __UCLIBC_HAS_LOCALE__
libc_hidden_proto(strcoll)
}
}
}
-libc_hidden_def(strlen)
+libc_hidden_weak(strlen)
return (char *) found;
}
-libc_hidden_def(strrchr)
+libc_hidden_weak(strrchr)
#ifdef __UCLIBC_SUSV3_LEGACY__
-strong_alias(strrchr,rindex)
+weak_alias(strrchr,rindex)
#endif
return r1;
}
-libc_hidden_def(Wmempcpy)
+libc_hidden_weak(Wmempcpy)
#endif
libc_hidden_def(Wstrchr)
#if !defined WANT_WIDE && defined __UCLIBC_SUSV3_LEGACY__
-strong_alias(strchr,index)
+weak_alias(strchr,index)
#endif
}
#ifndef WANT_WIDE
-libc_hidden_def(strdup)
+libc_hidden_weak(strdup)
#endif
return p - s;
}
-libc_hidden_def(Wstrlen)
+libc_hidden_weak(Wstrlen)
return (Wchar *) p; /* silence the warning */
}
#ifndef WANT_WIDE
-libc_hidden_def(strrchr)
+libc_hidden_weak(strrchr)
# ifdef __UCLIBC_SUSV3_LEGACY__
-strong_alias(strrchr,rindex)
+weak_alias(strrchr,rindex)
# endif
#endif