Possible Duplicate:
Creating ELF instead of a.out
When I use the command gcc hello.cpp, I end up with a.out.
I read somewhere that a.out files are different from ELF executables.
How do I instruct gcc to create ELF executable?
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.
In fact,
gccuses the namea.outfor historical reasons. You’re actuall getting anELFexecutable. You can verify this with thefilecommand, which will give you output along the lines of: