如何从 uclibc 中删除 libgcc_s.so 依赖项

发布于 2024-12-13 19:20:29 字数 158 浏览 4 评论 0原文

我的理解是 libgcc 不应该在嵌入式系统中使用,而 uclibc 需要尽可能使用。在 buildroot 构建期间,可以看到它也在生成 libgcc。如果我必须完全删除 libgcc 依赖项(没有静态和共享)并且只依赖 uclibc,这可能吗?是否有任何配置可以影响此更改?

谢谢。

My understanding is that libgcc shouldn't be used in embedded systems and uclibc need to be used wherever possible. During buildroot build it is seen that it is generating libgcc as well. If I have to remove libgcc dependency completely (no static as well as shared) and only rely on uclibc, is it possible ? Is there any configuration which can effect this change ?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零崎曲识 2024-12-20 19:20:29

您将 glibc 与 libgcc 混淆了。后者包含适用于您的体系结构的辅助函数(例如 ARM 应用程序配置文件上的整数除法),而不是标准 C 库函数。这些函数可能是“运行时 ABI”的一部分,并且无论您使用什么 C 库,都可能需要这些函数(即使是在裸机编译时)。

uClibc 是 glibc 的直接替代品,而不是 libgcc 的替代品。

You are confusing glibc with libgcc. The latter contains helper functions for your architecture (e.g. integer division on ARM Application Profile) and not the standard C library functions. These functions may be part of the "run-time ABI" and might be required regardless of the C library you are using (even when compiling for bare-metal).

The uClibc is a drop-in replacement for glibc, not for libgcc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文