I have a .a file from which I want to get architecture information. Running file myFile.a results in file.a: current ar archive. How can I get more information on what architecture the file contains?
I have a .a file from which I want to get architecture information. Running
Share
You can also skip the
arcommand and use readelf, via something like:readelf -h <archive>.a | grep 'Class\|File\|Machine'In case it’s relevant, here’s the other information that you can get from
readelf -h. I just trimmed the above withgrep, obviously:That output is for one of the object files in
libxslt.a, but it gives the same information for each file.