shared libg2c?

Michael Matz matzmich@cs.tu-berlin.de
Wed Nov 1 05:43:00 GMT 2000


Hi,

On Tue, 31 Oct 2000, Toon Moene wrote:
> > I don't understand.  Could you please elaborate?  Specifically, why is
> > it useful to have a non-reentrant archive lib, but it's not useful if
> > it's compiled as a shared lib?
> 
> Because it is not useful to have a non-reentrant shared lib, period :-)

Huh? Shared lib only means, that pages from the (immutable) .text section
and probably the .rodata section are shared between processes. As only
immutable pages can be shared, there are by definition no reentrancy
issues. And even if a page ever gets modified it becomes unshared.


Ciao,
Michael.



More information about the Gcc mailing list