This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SECTION .data contain nothing?



          Recently I read detaily COFF file format and bin file format, as you know COFF file use  section for relocation, and the .text section for code, .data for init value, .......      

          while I compiler a file and see the map file, I find that the size of the .data section is  0, which means the section is empty. I did not understand that because my program uses several  global vars which all have different init value(not 0) and I think the init value will be put  into .data section, did I misunderstand?   

          my program just like this: 

           int gtest0, gtest1, gtest2, gtest3;  

            int gtest4 = 0x55;

            char gchar[4] = {0x30, 0x31, 0x32, 0x33};  

            short gShort[5];

            void main()  {   ......  }