* Andrea Conti <a...@alyf.net> wrote:

> More importantly, code which is intended to be used in shared objects
> must be compiled with specific options as position-independent code,
> whereas code in an archive needs not.

Not necessarily. But it can't be shared at runtime anymore, since
the dynamic loader has to change the codepages for each process.
(well, there *is* a way ... back in a.out times libraries hat been
compiled/linked to specific address spaces, but obviously that's
quite complex to manage and not advisable outside speficic 
embedded environments)

> You can't link dynamically against a library archive, so all DL code on
> Linux must be compiled as a shared object, whether it's actually shared
> or not (think plugins).

You can (apache did it once, aeons ago), but it's quite tricky,
and it's hard to get the pages shared between processes.
Not the recommended way.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

Reply via email to