.text The .text section contains the all the general code which is produced by t
ID: 3734752 • Letter: #
Question
.text The .text section contains the all the general code which is produced by the compiler .data The .data secton contains all the initialization of the global and static varaibles which are being used.It contains defination of all the variables and also the defination of the string literal. .rsrc The .rsrc section contains information about the different resources for the different modules which are being used. .reloc The .reloc section contains the information about the table of the base relocation. Further analyzing the sections mentioned above, you saw that each section has a Virtual size and a Physical Size. What is the difference between the two? What does it mean if a section has a much bigger virtual size than the corresponding physical size?
Explanation / Answer
Virtual Size defines the space occupied by correspoinding section when that section is loaded into memory by loader.
Physical Size specifies the size occupied by that section on a disk.
When virtual size is greater than physical size, it means that there are some uninitialized variable whose space must be allocated in memory due to which virtual size(size of section in memory) is increased.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.