From e11c3011b10ada67c68d2d43a56fe606d35ca507 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 22 Dec 2007 06:28:23 +0000 Subject: mark a bunch of public mem/str functions as weak so that people who insist on their own local copies while static linking dont hit link failures when other uClibc code force the libc.a objects to be pulled in via the hidden alias symbols --- libc/string/bfin/memcpy.S | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'libc/string/bfin/memcpy.S') diff --git a/libc/string/bfin/memcpy.S b/libc/string/bfin/memcpy.S index ae40cb244..bdd760691 100644 --- a/libc/string/bfin/memcpy.S +++ b/libc/string/bfin/memcpy.S @@ -23,12 +23,8 @@ .align 2 -/* We have to bypass the libc-symbols.h machinery to make sure we get - * a weak symbol for memcpy (some crummy gcc tests want to redefine it). - */ -.global ___GI_memcpy -.type ___GI_memcpy, STT_FUNC -___GI_memcpy: +.weak _memcpy +ENTRY(_memcpy) [--SP] = P3; P0 = R0; /* P0 = To address */ P3 = R1; /* P3 = From Address */ @@ -75,8 +71,7 @@ ___GI_memcpy: P3 = [SP++]; RTS; -.size ___GI_memcpy,.-___GI_memcpy -.hidden ___GI_memcpy -.weak _memcpy -.set _memcpy,___GI_memcpy +.size _memcpy,.-_memcpy + +libc_hidden_def (memcpy) -- cgit v1.2.3