Dear all,
I have already studied COFF/PE and I have traced some executable files for PE format. I also know what C startup function is. Now there is one thing that I have not been able to find. That is the .text section format for C executable.
To be more specific, I used Visual Studio to get the executable for the simplest code, which is
void main()
{
}
When I looked at the .text section and disassembled result, I saw many extra codes have been inserted to the executable. I understand those extra codes are C runtime functions that needs to be called. But my question is the detailed format that a C executable need to follow to make it ruannable under Windows? Is there any detail descriptions?
Thanks.