shared libg2c?

Eric W. Biederman ebiederm@xmission.com
Wed Nov 1 11:32:00 GMT 2000


Michael Matz <matzmich@cs.tu-berlin.de> writes:

> 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.

Unless you happen to be think windows dll's.
I suspect it would be safe to still use a static library
in the cygwin port....

Eric


More information about the Gcc mailing list