Russ Cox wrote: Hi,
>> Assuming statically linked-in libraries are properly aligned, >> we'll have lots of equal pages in the system, so the kernel could >> find and automatically map them together. > > This is not true. When static libraries are linked into > a target binary, only the necessary objects are taken, > and all the symbol references are resolved (avoiding > the need for relocation at load time), and the code is > not position-independent. So even if they were "properly > aligned", the bits of common code would be very small. Assuming PIC, of course ;-) My idea is to get rid of mmap() for shared libraries but w/o loosing the code sharing behind the scenes. cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ cellphone: +49 174 7066481 email: [email protected] skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------
