Determine target ISA extensions of binary file in Linux (library or executable)

后端 未结 6 1182
太阳男子
太阳男子 2020-12-23 11:35

We have an issue related to a Java application running under a (rather old) FC3 on an Advantech POS board with a Via C3 processor. The java application has several compiled

6条回答
  •  情歌与酒
    2020-12-23 11:49

    Expanding upon @Hi-Angel's answer I found an easy way to check the bit width of a static library:

    readelf -a -W libsomefile.a | grep Class: | sort | uniq
    

    Where libsomefile.a is my static library. Should work for other ELF files as well.

提交回复
热议问题