转换的目标文件到另一个架构 [英] Convert object file to another architecture

查看:126
本文介绍了转换的目标文件到另一个架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用无线加密狗与树莓派。加密狗的厂商提供Linux驱动程序,我可以在ARM架构编译成功,但是,一个目标文件,自带的驱动程序,是pcompiled的x86架构,这将导致连接失败$ P $。

I am trying to use a Wifi-Dongle with a Raspberry Pi. The vendor of the dongle provides a Linux driver that I can compile successfully on the ARM-architecture, however, one object file, that comes with the driver, was precompiled for a x86-architecture, which causes the linker to fail.

我知道这将是更容易编译(相当大的)重新备案,但我没有访问源$ C ​​$ C。

I know it would be much easier to compile that (quite big) file again, but I don't have access to the source code.

是否有可能是目标文件从x86架构转换为ARM架构?

Is it possible to convert that object file from a x86-architecture to an ARM-architecture?

感谢您!

推荐答案

呃,不,它看起来对我来说是浪费时间。的Wi-Fi驱动程序是复杂的,你说这个人麻烦的对象文件是大。疼痛的很多翻译,并调试成功的机会渺茫无法比拟的。此外,这一个对象文件和系统的其余部分之间传递任何参数不会直接的x86和ARM之间进行转换。

Um, no, it looks to me like a waste of time. Wi-Fi driver is complex, and you say this one troublesome object file is 'large'. Lots of pain to translate, and chance of successful debug slim to none. Also, any parameter passing between this one object file and the rest of the system would not translate directly between x86 and ARM.

这篇关于转换的目标文件到另一个架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆