如何从 uclibc 中删除 libgcc_s.so 依赖项
我的理解是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将 glibc 与 libgcc 混淆了。后者包含适用于您的体系结构的辅助函数(例如 ARM 应用程序配置文件上的整数除法),而不是标准 C 库函数。这些函数可能是“运行时 ABI”的一部分,并且无论您使用什么 C 库,都可能需要这些函数(即使是在裸机编译时)。
uClibc 是 glibc 的直接替代品,而不是 libgcc 的替代品。
You are confusing
glibc
withlibgcc
. 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 forlibgcc
.