将目标文件转换为另一种架构

编程入门 行业动态 更新时间:2024-10-19 14:42:08
本文介绍了将目标文件转换为另一种架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试将 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-16 14:46:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/889136.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   架构   目标   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!