将目标文件转换为另一种架构 [英] Convert object file to another architecture

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

问题描述

我正在尝试将 Wifi-Dongle 与 Raspberry Pi 一起使用.加密狗的供应商提供了一个 Linux 驱动程序,我可以在 ARM 架构上成功编译该驱动程序,但是,驱动程序附带的一个目标文件针对 x86 架构进行了预编译,导致链接器失败.

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.

我知道再次编译那个(相当大的)文件会容易得多,但我无法访问源代码.

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天全站免登陆