On Fri, Jun 12, 2009 at 10:21:56AM +0300, Oleg Goldshmidt wrote: > Shachar Shemesh <shac...@shemesh.biz> writes: > > > I'm not sure whether base addresses are allocated randomly or > > something else is at work here, but collisions are not that common. > > You can manually rebase a DLL at post-link time,
On Linux you use the package 'prelink' > and I think that DLLs > shipped by commercial vendors (such as MS :) have precomputed base > addresses to avoid the overhead of load-time relocations. If many of > the DLLs in your experience came from 3rd parties then this may > explain your observation. > > http://en.wikipedia.org/wiki/Portable_Executable#Relocations > http://www.ddj.com/184416272 If you care about that, install prelink. IIRC distributions tend to configure it to run a weekly cron job to prelink all binaries on the system. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzaf...@cohens.org.il | | best ICQ# 16849754 | | friend _______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il