]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
riscv: Disable multiarch memset variants when !IS_IN(libc)
authorYao Zihong <zihong.plct@isrc.iscas.ac.cn>
Mon, 26 Jan 2026 21:28:00 +0000 (15:28 -0600)
committerPeter Bergner <bergner@tenstorrent.com>
Mon, 26 Jan 2026 21:28:00 +0000 (15:28 -0600)
This patch disables multiarch memset variants when !IS_IN(libc),
because rtld can only use a single fixed implementation.

Signed-off-by: Yao Zihong <zihong.plct@isrc.iscas.ac.cn>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/riscv/multiarch/memset-generic.c

index a4586d853ae6ecae2dc1100d968f21100b88b3b0..a477bfd76be4ac500fce8989788bb192329d0b9e 100644 (file)
@@ -22,5 +22,5 @@
 # define MEMSET __memset_generic
 # undef libc_hidden_builtin_def
 # define libc_hidden_builtin_def(x)
+# include <string/memset.c>
 #endif
-#include <string/memset.c>