Search code examples
windowsarmobjdumpobject-files

arm - how to check endianness of an object file


Using objdump, how do you check if an .obj is little- or big-endian?


Solution

  • So if you run objdump -d <filename>, you should see at the top of the disassembled code a line that is in this format:

    <filename>: file format (string that contains littlearm or bigarm)
    

    I assume that littlearm implies little endian and bigarm implies big endian.