mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Do not elide the libc hidden def of sparc's memset/memcpy when multiarching.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to the IFUNC routine in the libc case. * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2012-03-28 David S. Miller <davem@davemloft.net>
|
2012-03-28 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
|
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
|
||||||
|
the IFUNC routine in the libc case.
|
||||||
|
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
|
||||||
|
|
||||||
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
|
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
|
||||||
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
|
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
|
||||||
* sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
|
* sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Multiple versions of memcpy
|
/* Multiple versions of memcpy
|
||||||
Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||||
Contributed by David S. Miller (davem@davemloft.net)
|
Contributed by David S. Miller (davem@davemloft.net)
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@@ -72,10 +72,10 @@ ENTRY(memcpy)
|
|||||||
mov %o1, %o0
|
mov %o1, %o0
|
||||||
END(memcpy)
|
END(memcpy)
|
||||||
|
|
||||||
|
libc_hidden_builtin_def (memcpy)
|
||||||
|
|
||||||
#undef libc_hidden_builtin_def
|
#undef libc_hidden_builtin_def
|
||||||
/* IFUNC doesn't work with the hidden functions in a shared library. */
|
#define libc_hidden_builtin_def(name)
|
||||||
# define libc_hidden_builtin_def(name) \
|
|
||||||
.globl __GI_memcpy; __GI_memcpy = __memcpy_ultra1
|
|
||||||
|
|
||||||
#define memcpy __memcpy_ultra1
|
#define memcpy __memcpy_ultra1
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Multiple versions of memset and bzero
|
/* Multiple versions of memset and bzero
|
||||||
Copyright (C) 2010, 2011 Free Software Foundation, Inc.
|
Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||||
Contributed by David S. Miller (davem@davemloft.net)
|
Contributed by David S. Miller (davem@davemloft.net)
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@@ -88,10 +88,10 @@ weak_alias (__bzero, bzero)
|
|||||||
# undef weak_alias
|
# undef weak_alias
|
||||||
# define weak_alias(a, b)
|
# define weak_alias(a, b)
|
||||||
|
|
||||||
|
libc_hidden_builtin_def (memset)
|
||||||
|
|
||||||
#undef libc_hidden_builtin_def
|
#undef libc_hidden_builtin_def
|
||||||
/* IFUNC doesn't work with the hidden functions in a shared library. */
|
#define libc_hidden_builtin_def(name)
|
||||||
# define libc_hidden_builtin_def(name) \
|
|
||||||
.globl __GI_memset; __GI_memset = __memset_ultra1
|
|
||||||
|
|
||||||
#define memset __memset_ultra1
|
#define memset __memset_ultra1
|
||||||
#define __bzero __bzero_ultra1
|
#define __bzero __bzero_ultra1
|
||||||
|
Reference in New Issue
Block a user