From c7c3f5bf80ae86b34501f473f1a9fc545c911b7f Mon Sep 17 00:00:00 2001 From: caiyinyu Date: Sat, 11 May 2024 10:25:54 +0800 Subject: LoongArch: Fix undefined `__memset_aligned` reference in ld.so linking. 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(+) (limited to 'sysdeps') diff --git a/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h b/sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h index cb640d7..a73390b 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 -- cgit v1.1