fengels
fengels

Reputation: 55

How can I check for which platform a library is build

I am cross compiling for an RX platform under linux, but how can I check if the library is built for the right platform?

Does anyone knows what the command is under linux?

Upvotes: 1

Views: 853

Answers (2)

junix
junix

Reputation: 3221

You can use the command file see manpage to get meta information for a file. E.g. the architecture that it is compiled for.

Upvotes: 3

Andrew Tomazos
Andrew Tomazos

Reputation: 68728

If the output is in ELF format (which you can determine by typing file <filename>) than you can use the readelf and/or objdump commands to inspect it.

Upvotes: 0

Related Questions