Which contents have the header of an executable .bin file in Linux?
I found information for .exe files in Windows but I can’t find any information for .bin files.
TIA
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just to be clear, in Linux, executable files may be called “binary” but don’t have an explicit “.bin”
Linux generally uses the ELF format. The first byte is 0x7F followed by ascii for E, L, F – this is easily visible if you can load the binary into a text editor or print it at the command line using ‘cat’ or ‘less’. After that… well I’m rusty but details are easily found on the web.
Try http://www.thegeekstuff.com/2012/07/elf-object-file-format/ and http://www.acsu.buffalo.edu/~charngda/elf.html for a starter. (I found these with a superficial quick search, and do not claim these are the best. Happy hunting!)