Browse Source

Add hidden versions

Peter S. Mazinger 19 years ago
parent
commit
dd1be05eec
4 changed files with 24 additions and 16 deletions
  1. 6 4
      libc/string/sh64/memcpy.S
  2. 6 4
      libc/string/sh64/memset.S
  3. 6 4
      libc/string/sh64/strcpy.S
  4. 6 4
      libc/string/sh64/strlen.S

+ 6 - 4
libc/string/sh64/memcpy.S

@@ -38,10 +38,13 @@
 
 	.section .text..SHmedia32,"ax"
 	.globl	memcpy
-	.type	memcpy, @function
+	.set	memcpy,__memcpy
+	.globl	__memcpy
+	.hidden	__memcpy
+	.type	__memcpy, @function
 
 	.align	5
-memcpy:
+__memcpy:
 
 #define LDUAQ(P,O,D0,D1) ldlo.q P,O,D0; ldhi.q P,O+7,D1
 #define STUAQ(P,O,D0,D1) stlo.q P,O,D0; sthi.q P,O+7,D1
@@ -198,5 +201,4 @@ Loop_ua:
 	stlo.q r5, 8, r1
 	blink tr1, r63
 
-	.size memcpy, . - memcpy
-
+	.size __memcpy,.-__memcpy

+ 6 - 4
libc/string/sh64/memset.S

@@ -19,11 +19,14 @@
 
 	.section .text..SHmedia32,"ax"
 	.globl	memset
-	.type	memset, @function
+	.set	memset,__memset
+	.globl	__memset
+	.hidden	__memset
+	.type	__memset, @function
 
 	.align 5
 
-memset:
+__memset:
 	pta/l multiquad, tr0
 	andi r2, 7, r22
 	ptabs r18, tr2
@@ -88,5 +91,4 @@ loop:
 	sthi.q r5, -1, r3
 	blink tr2,r63
 
-	.size	memset, . - memset
-
+	.size	__memset,.-__memset

+ 6 - 4
libc/string/sh64/strcpy.S

@@ -16,10 +16,13 @@
 
 	.section .text..SHmedia32,"ax"
 	.globl	strcpy
-	.type	strcpy, @function
+	.set	strcpy,__strcpy
+	.globl	__strcpy
+	.hidden	__strcpy
+	.type	__strcpy, @function
 
 	.align 5
-strcpy:
+__strcpy:
 
 	pta/l shortstring,tr1
 	ldlo.q r3,0,r4
@@ -94,5 +97,4 @@ loop:
 	addi r0, 8, r0
 	blink tr1, r63 // shortstring
 
-	.size	strcpy, . - strcpy
-
+	.size	__strcpy,.-__strcpy

+ 6 - 4
libc/string/sh64/strlen.S

@@ -32,10 +32,13 @@
 
 	.section .text..SHmedia32,"ax"
 	.globl	strlen
-	.type	strlen,@function
+	.set	strlen,__strlen
+	.globl	__strlen
+	.hidden	__strlen
+	.type	__strlen,@function
 
 	.balign 16
-strlen:
+__strlen:
 	ptabs	r18, tr4
 
 	/*
@@ -56,5 +59,4 @@ loop:
 	or	r0, r63, r2
 	blink	tr4, r63
 
-	.size	strlen, . - strlen
-
+	.size	__strlen,.-__strlen