简体   繁体   中英

converting a 64bit .so to 32bit

I have a third party .so that was generated on a 64bit machine. I'd like to use this same .so on a 32bit machine. Anyone know how to do the conversion? I tried:

objcopy "--input-target=elf64-x86-64" "--output-target=elf32-i386" 64bit.so 32bit.so

but I'm still getting "File format not recognized" from gcc. For the record I'm doing this:

gcc -g code.c 32bit.so

which is kinda hack-y but that's ok for now.

You can't.

You need to get 32bit version of this 3rd part library or recompile it from its sources

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM