On Feb 6, 2011, at 2:37 AM, ali hagigat wrote: > I compile a C program by gcc and the result is an elf object file. > What is the structure of this object file? Does it have some headers > for sections and the byte information of those sections ONLY? > So where is ELF header? is it separate from section headers? The same > questions for the symbol table. These are questions about ELF rather than about GCC. Good places to start: http://en.wikipedia.org/wiki/Executable_and_Linkable_Format http://www.linuxjournal.com/node/1060/print http://zvrba.net/writings/elf-itu2007.pdf Amittai Aviram PhD Student in Computer Science Yale University 646 483 2639 amittai.aviram@xxxxxxxx http://www.amittai.com