What does “LSB” mean when referring to executable files in the output of /bin/file

elfexecutablefile formatterminology

I have found the term "LSB executable" or "LSB shared object" in the output of the file command in Linux. For example:

$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=4637713da6cd9aa30d1528471c930f88a39045ff, stripped

What does "LSB" mean in this context?

Best Answer

“LSB” here stands for “least-significant byte” (first), as opposed to “MSB”, “most-significant byte”. It means that the binary is little-endian.

file determines this from the sixth byte of the ELF header.

Related Question