summaryrefslogtreecommitdiff
path: root/libc/string/frv
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/frv')
-rw-r--r--libc/string/frv/memcpy.S9
-rw-r--r--libc/string/frv/memset.S9
2 files changed, 12 insertions, 6 deletions
diff --git a/libc/string/frv/memcpy.S b/libc/string/frv/memcpy.S
index 63cc523a9..1ffc7c398 100644
--- a/libc/string/frv/memcpy.S
+++ b/libc/string/frv/memcpy.S
@@ -31,8 +31,11 @@
#
###############################################################################
.globl memcpy
- .type memcpy,@function
-memcpy:
+ .set memcpy,__memcpy
+ .globl __memcpy
+ .hidden __memcpy
+ .type __memcpy,@function
+__memcpy:
or.p gr8,gr9,gr4
orcc gr10,gr0,gr0,icc3
or.p gr10,gr4,gr4
@@ -121,4 +124,4 @@ memcpy_32:
bne icc0,#2,0b
bralr
- .size memcpy, .-memcpy
+ .size __memcpy, .-__memcpy
diff --git a/libc/string/frv/memset.S b/libc/string/frv/memset.S
index 50d4c24c9..62e705a44 100644
--- a/libc/string/frv/memset.S
+++ b/libc/string/frv/memset.S
@@ -32,8 +32,11 @@
#
###############################################################################
.globl memset
- .type memset,@function
-memset:
+ .set memset,__memset
+ .globl __memset
+ .hidden __memset
+ .type __memset,@function
+__memset:
orcc.p gr10,gr0,gr5,icc3 ; GR5 = count
andi gr9,#0xff,gr9
or.p gr8,gr0,gr4 ; GR4 = address
@@ -152,4 +155,4 @@ memset:
cknc icc0,cc7
cstb.p gr12,@(gr4,gr0) ,cc7,#1
bralr
- .size memset, .-memset
+ .size __memset, .-__memset