r/windowsdev • u/tbhaxor • Apr 29 '22
What is difference between AddressOfEntryPoint and ImageBase
Till now I new that the ImageBase is first loaded in VM and then gets executed. Other sections are relative to it so it is easy to locate and import runtime or loadtime resources.
But now I am confused between AddressOfEntryPoint - is it the address of main function when loaded or the function that calls main function?
2
Upvotes
View all comments
Show parent comment
1
u/tbhaxor May 01 '22
Since it is relative to ImageBase, then instructions between [ImageBase, ImageBase + AddressOfEntryPoint] are for initializing CRT?