]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
LoongArch: Fix undefined `__memset_aligned` reference in ld.so linking.
authorcaiyinyu <caiyinyu@loongson.cn>
Sat, 11 May 2024 02:25:54 +0000 (10:25 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Wed, 15 May 2024 01:08:10 +0000 (09:08 +0800)
This patch from 095067efdf68c8061d6f99a21a0300841bede999 (LoongArch: Add
glibc.cpu.hwcap support.)

sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h

index cb640d77b7695b93a057ac6f48ef118ef784642f..a73390b12f67a3fc369c784da3328f6bd318bac5 100644 (file)
@@ -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