|
You are right, I didn't think of that.
Now I am again struggling a bit with the fact that the virtualsize is greater than the rawsize. Lets have a very simple imaginary example :
first section : Virtualsize = 010h
Size of Raw data = 08h
second section : Virtualsize = 08h
Size of Raw data = 08h
The Raw file looks like this :
00 : 53 --> start first section
01 : 0A
02 : F5
03 : D6
04 : F4
05 : E4
06 : 16
07 : 39
08 : C8 --> start second section
09 : D2
0A : F6
0B : E5
0C : D7
0D : A6
0E : 05
0F : 0C
Normally the first 8 bytes will be loaded into memory because the sizeofrawdata is 8. But what happens with the other 8 bytes?
Does this get loaded into memory as follows?
00 : 53 --> start first section in memory
01 : 0A
02 : F5
03 : D6
04 : F4
05 : E4
06 : 16
07 : 39
08 : C8 or ??
09 : D2 or ??
0A : F6 or ??
0B : E5 or ??
0C : D7 or ??
0D : A6 or ??
0E : 05 or ??
0F : 0C or ??
10 : C8 --> start second section in memory
11 : D2
12 : F6
13 : E5
14 : D7
15 : A6
16 : 05
17 : 0C
Which one of the two is the right one?
|