diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-05-22 10:21:10 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-05-23 09:36:08 -0300 |
commit | 62eaa4673923bd8b91a5f961828b75bcce10beb7 (patch) | |
tree | e8fe6a645d0a3cc6891f21a410cf6ef94c3770c6 | |
parent | ef9596352b9863dd055578b4bfdd3777aca0bcb8 (diff) | |
download | glibc-62eaa4673923bd8b91a5f961828b75bcce10beb7.tar.gz glibc-62eaa4673923bd8b91a5f961828b75bcce10beb7.tar.xz glibc-62eaa4673923bd8b91a5f961828b75bcce10beb7.zip |
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 <hjl.tools@gmail.com>
-rw-r--r-- | sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S | 2 |
1 files changed, 2 insertions, 0 deletions
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 |