Thursday, July 14, 2016

How to know for which architecture a library or executable was build.

To know details about your executable of library you could execute any of this command.

The 'file <file>' command will give you the architecture, you could also use 'objdump -f <file>'

Out put in your console would be more or less like below

libexpat.so.1.6.0: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, not stripped

we can see above ARM aarch64 was the architecture for this library build.

Note. Your file and objdump executable must be same with the architecture of where your executable was build.

No comments:

Post a Comment