diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-12-22 06:28:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-12-22 06:28:23 +0000 |
commit | e11c3011b10ada67c68d2d43a56fe606d35ca507 (patch) | |
tree | 4a39a35f393e83791cc9398bac7ae0d621f8679d /libc/string/bfin/memset.S | |
parent | 840bd4dfeaa936ec45fe53960ad79609cea2b225 (diff) |
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
Diffstat (limited to 'libc/string/bfin/memset.S')
-rw-r--r-- | libc/string/bfin/memset.S | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libc/string/bfin/memset.S b/libc/string/bfin/memset.S index c8ee0835f..64012f783 100644 --- a/libc/string/bfin/memset.S +++ b/libc/string/bfin/memset.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_memset -.type ___GI_memset, STT_FUNC -___GI_memset: +.weak _memset +ENTRY(_memset) P0 = R0 ; /* P0 = address */ P2 = R2 ; /* P2 = count */ R3 = R0 + R2; /* end */ @@ -89,8 +85,6 @@ ___GI_memset: B[P0++] = R1; JUMP .Laligned; -.size ___GI_memset,.-___GI_memset +.size _memset,.-_memset -.hidden ___GI_memset -.weak _memset -.set _memset,___GI_memset +libc_hidden_def (memset) |