[PATCH] LoongArch: Fix undefined `__memset_aligned` reference in ld.so linking.

caiyinyu caiyinyu@loongson.cn
Sat May 11 02:47:17 GMT 2024


This patch from 095067efdf68c8061d6f99a21a0300841bede999 (LoongArch: Add
glibc.cpu.hwcap support.)
---
 sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
2.43.0



More information about the Libc-stable mailing list