about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2024-05-11 10:25:54 +0800
committercaiyinyu <caiyinyu@loongson.cn>2024-05-15 09:08:10 +0800
commitc7c3f5bf80ae86b34501f473f1a9fc545c911b7f (patch)
treeda892650220cf3063a34b2bde376d2ab77b55992 /sysdeps
parent32969a2b36b8cc74343182b768b3babe6f81c3aa (diff)
downloadglibc-c7c3f5bf80ae86b34501f473f1a9fc545c911b7f.tar.gz
glibc-c7c3f5bf80ae86b34501f473f1a9fc545c911b7f.tar.xz
glibc-c7c3f5bf80ae86b34501f473f1a9fc545c911b7f.zip
LoongArch: Fix undefined `__memset_aligned` reference in ld.so linking.
This patch from 095067efdf68c8061d6f99a21a0300841bede999 (LoongArch: Add
glibc.cpu.hwcap support.)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h b/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h
index cb640d77b7..a73390b12f 100644
--- a/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h
+++ b/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h
@@ -19,6 +19,9 @@
 #ifndef _DL_IFUNC_GENERIC_H
 #define _DL_IFUNC_GENERIC_H
 
+#ifndef SHARED
 asm ("memset = __memset_aligned");
+asm ("memcmp = __memcmp_aligned");
+#endif
 
 #endif