Using objdump
, how do you check if an .obj
is little- or big-endian?
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.