summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-12 00:09:41 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-12 00:09:41 +0000
commitdd1be05eec6310a34647575c0d20bb5a052563c2 (patch)
treed446bca7855325365477cb4f166a4758c17c5d03
parentccb1922d8b3918b32a3cc11e61786c6c368967a8 (diff)
Add hidden versions
-rw-r--r--libc/string/sh64/memcpy.S10
-rw-r--r--libc/string/sh64/memset.S10
-rw-r--r--libc/string/sh64/strcpy.S10
-rw-r--r--libc/string/sh64/strlen.S10
4 files changed, 24 insertions, 16 deletions
diff --git a/libc/string/sh64/memcpy.S b/libc/string/sh64/memcpy.S
index 361e050db..0ee386a96 100644
--- a/libc/string/sh64/memcpy.S
+++ b/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
diff --git a/libc/string/sh64/memset.S b/libc/string/sh64/memset.S
index 714fa3fb3..e1679230b 100644
--- a/libc/string/sh64/memset.S
+++ b/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
diff --git a/libc/string/sh64/strcpy.S b/libc/string/sh64/strcpy.S
index 273e9147c..faa071c50 100644
--- a/libc/string/sh64/strcpy.S
+++ b/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
diff --git a/libc/string/sh64/strlen.S b/libc/string/sh64/strlen.S
index 57d15a29a..0f99488d5 100644
--- a/libc/string/sh64/strlen.S
+++ b/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