mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
String: Add hidden defs for __memcmpeq() to enable internal usage
No bug. This commit adds hidden defs for all declarations of __memcmpeq. This enables usage of __memcmpeq without the PLT for usage internal to GLIBC.
This commit is contained in:
parent
44829b3ddb
commit
9894127d20
@ -112,6 +112,7 @@ extern char *__strsep_g (char **__stringp, const char *__delim);
|
||||
libc_hidden_proto (__strsep_g)
|
||||
libc_hidden_proto (strnlen)
|
||||
libc_hidden_proto (__strnlen)
|
||||
libc_hidden_proto (__memcmpeq)
|
||||
libc_hidden_proto (memmem)
|
||||
extern __typeof (memmem) __memmem;
|
||||
libc_hidden_proto (__memmem)
|
||||
|
@ -362,3 +362,4 @@ weak_alias (memcmp, bcmp)
|
||||
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def(__memcmpeq)
|
||||
|
@ -180,3 +180,4 @@ weak_alias (memcmp, bcmp)
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -140,4 +140,5 @@ END (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
.weak memcmp
|
||||
|
@ -408,3 +408,4 @@ weak_alias (memcmp, bcmp)
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -26,6 +26,10 @@
|
||||
used by IFUNC. */
|
||||
# define libc_hidden_builtin_def(name) \
|
||||
.globl __GI_memcmp; __GI_memcmp = memcmp
|
||||
|
||||
# undef libc_hidden_def
|
||||
# define libc_hidden_def(name) \
|
||||
.globl __GI___memcmpeq; __GI___memcmpeq = __memcmpeq
|
||||
# endif
|
||||
|
||||
# undef weak_alias
|
||||
|
@ -30,4 +30,5 @@ libc_ifunc_redirected (__redirect_memcmp, memcmp, IFUNC_SELECTOR ());
|
||||
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
#endif
|
||||
|
@ -73,3 +73,4 @@ weak_alias (memcmp, bcmp)
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -162,3 +162,4 @@ END(memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -127,3 +127,4 @@ END (memcmp)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp,bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -1374,3 +1374,4 @@ END (memcmp)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -35,6 +35,9 @@
|
||||
#undef libc_hidden_builtin_def
|
||||
#define libc_hidden_builtin_def(name)
|
||||
|
||||
#undef libc_hidden_def
|
||||
#define libc_hidden_def(name)
|
||||
|
||||
#undef weak_alias
|
||||
#define weak_alias(a, b)
|
||||
|
||||
|
@ -1374,3 +1374,4 @@ END (memcmp)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -178,3 +178,4 @@ END (MEMCMP)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#undef libc_hidden_builtin_def
|
||||
#define libc_hidden_builtin_def(name)
|
||||
#undef libc_hidden_def
|
||||
#define libc_hidden_def(name)
|
||||
#undef weak_alias
|
||||
#define weak_alias(name,alias)
|
||||
#undef strong_alias
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#undef libc_hidden_builtin_def
|
||||
#define libc_hidden_builtin_def(name)
|
||||
#undef libc_hidden_def
|
||||
#define libc_hidden_def(name)
|
||||
#undef weak_alias
|
||||
#define weak_alias(name,alias)
|
||||
#undef strong_alias
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#undef libc_hidden_builtin_def
|
||||
#define libc_hidden_builtin_def(name)
|
||||
#undef libc_hidden_def
|
||||
#define libc_hidden_def(name)
|
||||
#undef weak_alias
|
||||
#define weak_alias(name,alias)
|
||||
#undef strong_alias
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#undef libc_hidden_builtin_def
|
||||
#define libc_hidden_builtin_def(name)
|
||||
#undef libc_hidden_def
|
||||
#define libc_hidden_def(name)
|
||||
#undef weak_alias
|
||||
#define weak_alias(name,alias)
|
||||
#undef strong_alias
|
||||
|
@ -1375,3 +1375,4 @@ END (MEMCMP)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -1060,3 +1060,4 @@ END (MEMCMP)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -1443,3 +1443,4 @@ END (MEMCMP)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -165,6 +165,7 @@ END(MEMCMP_Z196)
|
||||
strong_alias (MEMCMP_DEFAULT, memcmp)
|
||||
weak_alias (memcmp, bcmp)
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
#endif
|
||||
|
||||
#if defined SHARED && IS_IN (libc)
|
||||
|
@ -47,4 +47,5 @@ s390_libc_ifunc_expr (__redirect_memcmp, memcmp,
|
||||
)
|
||||
weak_alias (memcmp, bcmp);
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
#endif
|
||||
|
@ -140,3 +140,4 @@ weak_alias (memcmp, bcmp)
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -361,3 +361,4 @@ weak_alias (memcmp, bcmp)
|
||||
#undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_builtin_def (memcmp)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
@ -22,6 +22,9 @@
|
||||
# ifdef SHARED
|
||||
# undef libc_hidden_builtin_def
|
||||
# define libc_hidden_builtin_def(name)
|
||||
|
||||
# undef libc_hidden_def
|
||||
# define libc_hidden_def(ignored)
|
||||
# endif
|
||||
|
||||
# undef weak_alias
|
||||
|
@ -31,6 +31,7 @@ libc_ifunc_redirected (__redirect_memcmp, memcmp, IFUNC_SELECTOR ());
|
||||
weak_alias (memcmp, bcmp)
|
||||
# undef __memcmpeq
|
||||
strong_alias (memcmp, __memcmpeq)
|
||||
libc_hidden_def (__memcmpeq)
|
||||
|
||||
# ifdef SHARED
|
||||
__hidden_ver1 (memcmp, __GI_memcmp, __redirect_memcmp)
|
||||
|
Loading…
Reference in New Issue
Block a user