svn commit: trunk/uClibc/libc/string/x86_64

psm at uclibc.org psm at uclibc.org
Sat Nov 12 01:03:53 UTC 2005


Author: psm
Date: 2005-11-11 17:03:51 -0800 (Fri, 11 Nov 2005)
New Revision: 12220

Log:
Add hidden versions

Modified:
   trunk/uClibc/libc/string/x86_64/memcpy.S
   trunk/uClibc/libc/string/x86_64/memset.S
   trunk/uClibc/libc/string/x86_64/strcat.S
   trunk/uClibc/libc/string/x86_64/strchr.S
   trunk/uClibc/libc/string/x86_64/strcmp.S
   trunk/uClibc/libc/string/x86_64/strcpy.S
   trunk/uClibc/libc/string/x86_64/strcspn.S
   trunk/uClibc/libc/string/x86_64/strlen.S
   trunk/uClibc/libc/string/x86_64/strpbrk.S
   trunk/uClibc/libc/string/x86_64/strspn.S


Changeset:
Modified: trunk/uClibc/libc/string/x86_64/memcpy.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/memcpy.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/memcpy.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -32,7 +32,10 @@
 	jb	HIDDEN_JUMPTARGET (__chk_fail)
 END (__memcpy_chk)
 #endif
-ENTRY (BP_SYM (memcpy))
+.global memcpy
+.set memcpy,__memcpy
+.hidden __memcpy
+ENTRY (BP_SYM (__memcpy))
 	/* Cutoff for the big loop is a size of 32 bytes since otherwise
 	   the loop will never be entered.  */
 	cmpq	$32, %rdx
@@ -92,4 +95,4 @@
 #endif
 	ret
 
-END (BP_SYM (memcpy))
+END (BP_SYM (__memcpy))

Modified: trunk/uClibc/libc/string/x86_64/memset.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/memset.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/memset.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -35,7 +35,10 @@
 	jb	HIDDEN_JUMPTARGET (__chk_fail)
 END (__memset_chk)
 #endif
-ENTRY (memset)
+.global memset
+.set memset,__memset
+.hidden __memset
+ENTRY (__memset)
 #if BZERO_P
 	mov	%rsi,%rdx	/* Adjust parameter.  */
 	xorl	%esi,%esi	/* Fill with 0s.  */
@@ -131,7 +134,7 @@
 	jne	11b
 	jmp	4b
 
-END (memset)
+END (__memset)
 
 #if !BZERO_P && defined PIC && !defined NOT_IN_libc
 strong_alias (__memset_chk, __memset_zero_constant_len_parameter)

Modified: trunk/uClibc/libc/string/x86_64/strcat.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strcat.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strcat.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -23,7 +23,10 @@
 
 
 	.text
-ENTRY (BP_SYM (strcat))
+.global strcat
+.set strcat,__strcat
+.hidden __strcat
+ENTRY (BP_SYM (__strcat))
 	movq %rdi, %rcx		/* Dest. register. */
 	andl $7, %ecx		/* mask alignment bits */
 	movq %rdi, %rax		/* Duplicate destination pointer.  */
@@ -253,4 +256,4 @@
 24:
 	movq	%rdi, %rax	/* Source is return value.  */
 	retq
-END (BP_SYM (strcat))
+END (BP_SYM (__strcat))

Modified: trunk/uClibc/libc/string/x86_64/strchr.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strchr.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strchr.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -22,7 +22,10 @@
 
 
 	.text
-ENTRY (BP_SYM (strchr))
+.globl strchr
+.set strchr,__strchr
+.hidden __strchr
+ENTRY (BP_SYM (__strchr))
 
 	/* Before we start with the main loop we process single bytes
 	   until the source pointer is aligned.  This has two reasons:
@@ -282,6 +285,6 @@
 6:
 	nop
 	retq
-END (BP_SYM (strchr))
+END (BP_SYM (__strchr))
 
 weak_alias (BP_SYM (strchr), BP_SYM (index))

Modified: trunk/uClibc/libc/string/x86_64/strcmp.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strcmp.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strcmp.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -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 @@
 	movl	$-1, %ecx
 	cmovbl	%ecx, %eax
 	ret
-END (BP_SYM (strcmp))
+END (BP_SYM (__strcmp))

Modified: trunk/uClibc/libc/string/x86_64/strcpy.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strcpy.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strcpy.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -21,7 +21,10 @@
 #include "_glibc_inc.h"
 
 #ifndef USE_AS_STPCPY
-# define STRCPY strcpy
+# define STRCPY __strcpy
+.global strcpy
+.set strcpy,__strcpy
+.hidden __strcpy
 #endif
 
 	.text

Modified: trunk/uClibc/libc/string/x86_64/strcspn.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strcspn.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strcspn.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -26,10 +26,16 @@
 #include "_glibc_inc.h"
 
 /* BEWARE: `#ifdef strcspn' means that strcspn is redefined as `strpbrk' */
-#define STRPBRK_P (defined strcspn)
+#define STRPBRK_P (defined __strcspn)
 
 	.text
-ENTRY (strcspn)
+#if STRPBRK_P
+#else
+.global strcspn
+.set strcspn,__strcspn
+.hidden __strcspn
+#endif
+ENTRY (__strcspn)
 
 	movq %rdi, %rdx		/* Save SRC.  */
 
@@ -120,4 +126,4 @@
 				   non-valid character */
 #endif
 	ret
-END (strcspn)
+END (__strcspn)

Modified: trunk/uClibc/libc/string/x86_64/strlen.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strlen.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strlen.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -22,7 +22,10 @@
 
 
 	.text
-ENTRY (strlen)
+.global strlen
+.set strlen,__strlen
+.hidden __strlen
+ENTRY (__strlen)
 	movq %rdi, %rcx		/* Duplicate source pointer. */
 	andl $7, %ecx		/* mask alignment bits */
 	movq %rdi, %rax		/* duplicate destination.  */
@@ -132,4 +135,4 @@
 2:
 	subq %rdi, %rax		/* compute difference to string start */
 	ret
-END (strlen)
+END (__strlen)

Modified: trunk/uClibc/libc/string/x86_64/strpbrk.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strpbrk.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strpbrk.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -1,2 +1,5 @@
-#define strcspn strpbrk
+#define __strcspn __strpbrk
+.global strpbrk
+.set strpbrk,__strpbrk
+.hidden __strpbrk
 #include "strcspn.S"

Modified: trunk/uClibc/libc/string/x86_64/strspn.S
===================================================================
--- trunk/uClibc/libc/string/x86_64/strspn.S	2005-11-12 00:48:12 UTC (rev 12219)
+++ trunk/uClibc/libc/string/x86_64/strspn.S	2005-11-12 01:03:51 UTC (rev 12220)
@@ -26,7 +26,10 @@
 #include "_glibc_inc.h"
 
 	.text
-ENTRY (strspn)
+.global strspn
+.set strspn,__strspn
+.hidden __strspn
+ENTRY (__strspn)
 
 	movq %rdi, %rdx		/* Save SRC.  */
 
@@ -111,4 +114,4 @@
 				   characters, so compute distance to first
 				   non-valid character */
 	ret
-END (strspn)
+END (__strspn)




More information about the uClibc-cvs mailing list