I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated.
Thanks in advance.
I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated.
Thanks in advance.
Assuming this is in Windows (DLL hints at that), you might want to read Microsoft's Run-Time Dynamic Linking documentation page. It doesn't specify in detail how the DLL is mapped into the address space; I guess you're not supposed to need to know that.
What level of detail are you looking for? On the basic level, all dynamic linkers work pretty much the same way:
If you are really interested you should read the book Linkers and Loaders.