arm-none-linux-gnueabi vs arm-linux – EABI vs Non-EABI

本文探讨了在使用不同编译器(如codesourcery、ADS等)创建的EABI和非EABI二进制文件之间存在的不兼容性问题。详细介绍了如何通过下载非EABI的arm-linux目标工具链解决Linux内核加载使用EABI工具链构建的根文件系统时出现的Kernel panic问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

         EABI is the new Application Binary Interface (ABI) specification for the ARM Architecture introduced in 2005. It aims to provide interoperability between binaries compiled by various compilers like codesourcery, ADS, RVCT, RVDS, etc. Which previous non-EABI binaries couldn’t provide. Thus, It is possible to link libraries created using different compilers with EABI support but old ABI libraries lacked that compatibility. This caused a lot of trouble to me recently. I compiled the linux kernel with EABI turned off. Then I compiled busybox and other libraries using arm-none-linux-gnueabi target as dynamically shared libraries. The kernel won’t load the rootfs built using EABI toolchain. It used to print, Kernel panic – not syncing: Attempted to kill init! I downloaded another toolchain(arm-linux target this time) and compiled the rootfs using it. This time, kernel had no trouble loading the file system. As I searched further, I learned that EABI and non-EABI are not inter-operable and hence the mess. I also learned that all the toolchain supplied by codesourcery since 2005 are EABI based. The arm-linux toolchain I downloaded recently(which is non-EABI) is not from codesourcery.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值