aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-10-21 15:53:58 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2021-10-26 16:51:29 -0500
commit9894127d202d8c0c821d852658057a03ba3cc3d2 (patch)
treeb2517795f8aa1613ffb17a5d23a8804e9d1860b6 /sysdeps/i386
parent44829b3ddb64e99e37343a0f25b2c082387d31a5 (diff)
downloadglibc-9894127d202d8c0c821d852658057a03ba3cc3d2.zip
glibc-9894127d202d8c0c821d852658057a03ba3cc3d2.tar.gz
glibc-9894127d202d8c0c821d852658057a03ba3cc3d2.tar.bz2
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.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/i686/memcmp.S1
-rw-r--r--sysdeps/i386/i686/multiarch/memcmp-ia32.S4
-rw-r--r--sysdeps/i386/i686/multiarch/memcmp.c1
-rw-r--r--sysdeps/i386/memcmp.S1
4 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/i386/i686/memcmp.S b/sysdeps/i386/i686/memcmp.S
index 90266d9..cc3329b 100644
--- a/sysdeps/i386/i686/memcmp.S
+++ b/sysdeps/i386/i686/memcmp.S
@@ -408,3 +408,4 @@ weak_alias (memcmp, bcmp)
#undef __memcmpeq
strong_alias (memcmp, __memcmpeq)
libc_hidden_builtin_def (memcmp)
+libc_hidden_def (__memcmpeq)
diff --git a/sysdeps/i386/i686/multiarch/memcmp-ia32.S b/sysdeps/i386/i686/multiarch/memcmp-ia32.S
index a5b5c3d..74188f7 100644
--- a/sysdeps/i386/i686/multiarch/memcmp-ia32.S
+++ b/sysdeps/i386/i686/multiarch/memcmp-ia32.S
@@ -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
diff --git a/sysdeps/i386/i686/multiarch/memcmp.c b/sysdeps/i386/i686/multiarch/memcmp.c
index 3b2815e..eb7cb9f 100644
--- a/sysdeps/i386/i686/multiarch/memcmp.c
+++ b/sysdeps/i386/i686/multiarch/memcmp.c
@@ -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
diff --git a/sysdeps/i386/memcmp.S b/sysdeps/i386/memcmp.S
index 02473c2..f224db4 100644
--- a/sysdeps/i386/memcmp.S
+++ b/sysdeps/i386/memcmp.S
@@ -73,3 +73,4 @@ weak_alias (memcmp, bcmp)
#undef __memcmpeq
strong_alias (memcmp, __memcmpeq)
libc_hidden_builtin_def (memcmp)
+libc_hidden_def (__memcmpeq)