Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert object file to another architecture

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.

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

Thank you!

like image 597
Dawamaha Avatar asked Dec 07 '22 10:12

Dawamaha


1 Answers

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.

like image 53
Joe Kul Avatar answered Dec 16 '22 01:12

Joe Kul