1 Star 0 Fork 16

ocs-commit-check/glibc

forked from OpenCloudOS Stream/glibc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0014-loongarch-Remove-duplicate-strnlen-in-libc.a-BZ-3178.patch 926 Bytes
一键复制 编辑 原始数据 按行查看 历史
ticat_fp 提交于 2024-11-07 15:19 +08:00 . LoongArch: Sync from glibc upstream
From 7ec8b739ef6b859830a445f30689a024b18b5cc6 Mon Sep 17 00:00:00 2001
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed, 22 May 2024 10:21:10 -0300
Subject: [PATCH 14/15] 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>
---
sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S b/sysdeps/loongarch/lp64/multiarch/strnlen-aligned.S
index a8296a1b..05837ce7 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
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit-check/glibc.git
git@gitee.com:ocs-commit-check/glibc.git
ocs-commit-check
glibc
glibc
master

搜索帮助

371d5123 14472233 46e8bd33 14472233