Mail Archives: cygwin-developers/1998/02/17/02:03:03
Ian Lance Taylor wrote:
> Some of the posts on the gnu-win32 list have implied that Windows
> always relocates DLLs if they have relocation information. I would
> hope that that is not true--if the DLL is loaded at the image address,
> it should not be relocated. Does anybody know exactly what Windows
> does? Perhaps there is something incorrect about the DLLs which
It seems to me not true. Windows (at least NT) relocates a dll only if
address space is in use by any other dll/stack/program code/alloced memory.
But dll reallocation is not only slowness of process startup, another one
is linking of application/dll imports/exports - it's really slow process -
for every import loader performs a binary search of corresponding dll's
export by name.
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.
- Raw text -