From fe68563b9a070fedf117c8738652587945427bb3 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 3 Jan 2006 14:46:56 +0000 Subject: Use strong_alias everywhere instead of .global/.set. Correct some cases where the non-hidden version was used. --- libc/string/sh64/memcpy.S | 8 +++++--- libc/string/sh64/memset.S | 5 +++-- libc/string/sh64/strcpy.S | 7 ++++--- libc/string/sh64/strlen.S | 6 ++++-- 4 files changed, 16 insertions(+), 10 deletions(-) (limited to 'libc/string/sh64') 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 + .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 #include #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 #include #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 + .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) -- cgit v1.2.3