diff options
Diffstat (limited to 'libc/string/sh64')
-rw-r--r-- | libc/string/sh64/memcpy.S | 8 | ||||
-rw-r--r-- | libc/string/sh64/memset.S | 5 | ||||
-rw-r--r-- | libc/string/sh64/strcpy.S | 7 | ||||
-rw-r--r-- | libc/string/sh64/strlen.S | 6 |
4 files changed, 16 insertions, 10 deletions
diff --git a/libc/string/sh64/memcpy.S b/libc/string/sh64/memcpy.S index 0ee386a96..d74980613 100644 --- a/libc/string/sh64/memcpy.S +++ b/libc/string/sh64/memcpy.S @@ -36,14 +36,14 @@ ! enirety if at least one byte is included in the copy. ! +#include <features.h> + .section .text..SHmedia32,"ax" - .globl memcpy - .set memcpy,__memcpy .globl __memcpy .hidden __memcpy .type __memcpy, @function - .align 5 + __memcpy: #define LDUAQ(P,O,D0,D1) ldlo.q P,O,D0; ldhi.q P,O+7,D1 @@ -202,3 +202,5 @@ Loop_ua: blink tr1, r63 .size __memcpy,.-__memcpy + +strong_alias(__memcpy,memcpy) diff --git a/libc/string/sh64/memset.S b/libc/string/sh64/memset.S index d87879717..cd2ad7998 100644 --- a/libc/string/sh64/memset.S +++ b/libc/string/sh64/memset.S @@ -9,6 +9,7 @@ ! Copyright 2002 SuperH Ltd. ! +#include <features.h> #include <endian.h> #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -20,8 +21,6 @@ #endif .section .text..SHmedia32,"ax" - .globl memset - .set memset,__memset .globl __memset .hidden __memset .type __memset, @function @@ -94,3 +93,5 @@ loop: blink tr2,r63 .size __memset,.-__memset + +strong_alias(__memset,memset) diff --git a/libc/string/sh64/strcpy.S b/libc/string/sh64/strcpy.S index f662cc859..2ce998257 100644 --- a/libc/string/sh64/strcpy.S +++ b/libc/string/sh64/strcpy.S @@ -6,6 +6,7 @@ ! ! SH5 code Copyright 2002 SuperH Ltd. +#include <features.h> #include <endian.h> #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -17,13 +18,11 @@ #endif .section .text..SHmedia32,"ax" - .globl strcpy - .set strcpy,__strcpy .globl __strcpy .hidden __strcpy .type __strcpy, @function - .align 5 + __strcpy: pta/l shortstring,tr1 @@ -100,3 +99,5 @@ loop: blink tr1, r63 // shortstring .size __strcpy,.-__strcpy + +strong_alias(__strcpy,strcpy) diff --git a/libc/string/sh64/strlen.S b/libc/string/sh64/strlen.S index 0f99488d5..673a34dbd 100644 --- a/libc/string/sh64/strlen.S +++ b/libc/string/sh64/strlen.S @@ -30,9 +30,9 @@ * SUCH DAMAGE. */ +#include <features.h> + .section .text..SHmedia32,"ax" - .globl strlen - .set strlen,__strlen .globl __strlen .hidden __strlen .type __strlen,@function @@ -60,3 +60,5 @@ loop: blink tr4, r63 .size __strlen,.-__strlen + +strong_alias(__strlen,strlen) |