about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-02-13 18:46:23 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-14 17:57:07 -0800
commita5659cf27d3ce6101c1632715d18ab6321755340 (patch)
tree4a38fd4a8a496b5205ecda904c871b0369ae717a
parent7a06be051c01b4325927efab5b4e4280bb4a5a42 (diff)
downloadglibc-a5659cf27d3ce6101c1632715d18ab6321755340.tar.gz
glibc-a5659cf27d3ce6101c1632715d18ab6321755340.tar.xz
glibc-a5659cf27d3ce6101c1632715d18ab6321755340.zip
x86-64: Define __memcmpeq in ld.so
Define __memcmpeq in ld.so so that compiler can generate __memcmpeq call
when compiling for ld.so.
-rw-r--r--sysdeps/x86_64/multiarch/memcmpeq-sse2.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/x86_64/multiarch/memcmpeq-sse2.S b/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
index b80a29d4b0..de7f5a7525 100644
--- a/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
+++ b/sysdeps/x86_64/multiarch/memcmpeq-sse2.S
@@ -16,8 +16,10 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
-#ifndef memcmp
+#if IS_IN (libc)
 # define memcmp	__memcmpeq_sse2
+#else
+# define memcmp	__memcmpeq
 #endif
 #define USE_AS_MEMCMPEQ	1
 #include "memcmp-sse2.S"