Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixed up 32Bit and 64bit shared object / libraries

Accidentally I mixed up between 32Bit and 64Bit library files on my x86 embedded Linux system. I'm now trying to find out which .so-File could be the wrong one.

Do you know any tool to analyze .so files?

In my strace logs I found calls to fstat64(). Which .so-file contains the fstat() routine?

Thanks

like image 402
Maus Avatar asked Sep 07 '09 16:09

Maus


2 Answers

file(1) can quickly tell you whether a shared object is 32-bit of 64-bit. Try:

file /lib/*.so*
like image 174
earl Avatar answered Nov 01 '22 19:11

earl


readelf -h /path/to/yourelf

like image 25
Paul Whelan Avatar answered Nov 01 '22 19:11

Paul Whelan