Larry Hall wrote: > >(Too bad Windows doesn't do > >PIC / GOT / PLT so that the text pages can remain readonly.) > > Well yes but then that wouldn't be backward compatible with DOS and > *then* where would we be?
In fairness to Microsoft (!!), since they are the central source for the majority of system DLLs it's possible for them to ensure that the ImageBases are set uniquely so that relocations don't happen very often. In Process Explorer there's a neat feature to highlight relocated DLLs. When you browse through the process list it's mostly only third-party DLLs (usually those that load dynamically as plugins or ActiveX components) that are relocated, so in a sense they kind of worked around the issue for the most part. Still, it would have been nice if the architects of the DLL system had thought ahead a little further. Brian