From: Adhemerval Zanella Date: Wed, 22 May 2024 13:21:10 +0000 (-0300) Subject: loongarch: Remove duplicate strnlen in libc.a (BZ 31785) X-Git-Tag: glibc-2.40~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62eaa4673923bd8b91a5f961828b75bcce10beb7;p=thirdparty%2Fglibc.git loongarch: Remove duplicate strnlen in libc.a (BZ 31785) The generic version provides weak definitions of strnlen, which are already provided by the ifunc resolver. Reviewed-by: H.J. Lu --- diff --git a/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S b/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S index 9826d21c2e..3606225ca2 100644 --- a/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S +++ b/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S @@ -98,5 +98,7 @@ L(out): jr ra END(STRNLEN) +#if !IS_IN (libc) weak_alias (STRNLEN, strnlen) libc_hidden_builtin_def (STRNLEN) +#endif